%% generate tags start %% #software-engineering %% generate tags end %% #software-engineering/chatbot Embedchain is a framework to easily create LLM powered bots over any dataset. If you want a javascript version, check out [embedchain-js](https://github.com/embedchain/embedchainjs) ```ts const dotenv = require("dotenv"); dotenv.config(); const { App } = require("embedchain"); //Run the app commands inside an async function only async function testApp() { const navalChatBot = await App(); // Embed Online Resources await navalChatBot.add("web_page", "https://nav.al/feedback"); await navalChatBot.add("web_page", "https://nav.al/agi"); await navalChatBot.add( "pdf_file", "https://navalmanack.s3.amazonaws.com/Eric-Jorgenson_The-Almanack-of-Naval-Ravikant_Final.pdf" ); // Embed Local Resources await navalChatBot.addLocal("qna_pair", [ "Who is Naval Ravikant?", "Naval Ravikant is an Indian-American entrepreneur and investor.", ]); const result = await navalChatBot.query( "What unique capacity does Naval argue humans possess when it comes to understanding explanations or concepts?" ); console.log(result); // answer: Naval argues that humans possess the unique capacity to understand explanations or concepts to the maximum extent possible in this physical reality. } testApp(); ```