Skip to content

malhotraarshdeepsingh/RAGOfGold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ’ฐ RAGOfGold

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.

๐Ÿ–ผ๏ธ Screenshots

App Screenshot

๐Ÿงฐ Tech Stack

๐Ÿ–ฅ๏ธ Client: HTML, CSS, JS

๐Ÿ› ๏ธ Server: Node, Express, Socket.io

๐Ÿง  AI & NLP: OpenAI, LangChain

๐Ÿ“„ Text Extraction: Cheerio, SanitizeHTML

๐Ÿ“– How It Works

  • ๐Ÿ”Ž 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.

๐ŸŒ Run Locally

Clone the project

  git clone https://github.com/malhotraarshdeepsingh/RAGOfGold

Go to the project directory

  cd RAGOfGold

Install dependencies

  npm install

Add your Environment Variables

  OPENAI_API_KEY=your_openai_api_key

Start the server

  npm run start

โš™๏ธ Environment Variables

To run this project, you will need to add the following environment variables to your .env file

OPENAI_API_KEY

๐Ÿ™ Acknowledgements

About

Writing down a agentic rag for very first time

Topics

Resources

Stars

Watchers

Forks