RAGOfGold is a chatbot that answers questions about gold and silver prices. It uses blog data and a smart AI model to give answers based on real information.
๐ฅ๏ธ Client: HTML, CSS, JS
๐ ๏ธ Server: Node, Express, Socket.io
๐ง AI & NLP: OpenAI, LangChain
๐ Text Extraction: Cheerio, SanitizeHTML
- ๐ Collects blog posts from a website
- ๐งน Cleans the content and breaks it into smaller parts
- ๐ง Converts those parts into embeddings using OpenAI
- ๐ฆ Stores the data in memory for fast retrieval
- ๐ฌ Searches for the most relevant chunks when a question is asked
- ๐ค Sends those chunks to the AI to generate an answer
This was my first time trying something like this. I followed helpful guides and examples from LangChainโs official docs, just learned and built it step by step.
The front-end uses a simple chat interface made with HTML, CSS, and Socket.IO so users can chat with the bot easily.
Clone the project
git clone https://github.com/malhotraarshdeepsingh/RAGOfGoldGo to the project directory
cd RAGOfGoldInstall dependencies
npm installAdd your Environment Variables
OPENAI_API_KEY=your_openai_api_keyStart the server
npm run startTo run this project, you will need to add the following environment variables to your .env file
OPENAI_API_KEY
