Chat with any PDF using AI. Upload a document and ask questions — the chatbot answers strictly from your document content.
https://querylayer-f6oysgzwxrbybz8lezcrmr.streamlit.app/
- Ingestion — PDF is parsed, split into chunks, embedded using sentence-transformers and stored in a FAISS vector index
- Retrieval — User question is embedded and top-4 similar chunks are retrieved via cosine similarity
- Generation — Retrieved chunks are passed as context to LLaMA 3.1 (via Groq API) which generates a grounded answer
- Python, Streamlit
- LangChain, FAISS, HuggingFace sentence-transformers
- Groq API (LLaMA 3.1 8B)
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