Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAG Document Chatbot

Chat with any PDF using AI. Upload a document and ask questions — the chatbot answers strictly from your document content.

Live Demo

https://querylayer-f6oysgzwxrbybz8lezcrmr.streamlit.app/

How it works

  1. Ingestion — PDF is parsed, split into chunks, embedded using sentence-transformers and stored in a FAISS vector index
  2. Retrieval — User question is embedded and top-4 similar chunks are retrieved via cosine similarity
  3. Generation — Retrieved chunks are passed as context to LLaMA 3.1 (via Groq API) which generates a grounded answer

Tech Stack

  • Python, Streamlit
  • LangChain, FAISS, HuggingFace sentence-transformers
  • Groq API (LLaMA 3.1 8B)

Run locally

git clone https://github.com/maynkxx/QueryLayer cd rag-chatbot pip install -r requirements.txt echo "GROQ_API_KEY=your_key" > .env streamlit run app.py

About

Retrieval-Augmented Generation (RAG) system that enables semantic search and conversational Q&A over documents using LangChain, FAISS, and Llama 3.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages