prashantbhandari/rag-linux-kernel
0
๐ Chat with Any Book (RAG)
Upload any PDF book or document and ask questions โ get answers with exact page citations.
How it works
- Upload a PDF
- The book is split into ~800-token chunks and embedded
- Your question is matched to the most relevant passages
- Groq (Llama3-70B) answers using only those passages
Stack
- LLM: Groq API โ
llama-3.3-70b-versatile - Embeddings:
sentence-transformers/all-MiniLM-L6-v2 - Vector DB: ChromaDB (in-memory, per session)
- Frontend: Streamlit
Run locally
git clone https://huggingface.co/spaces/YOUR_USERNAME/rag-linux-kernel
cd rag-linux-kernel
pip install -r requirements.txt
GROQ_API_KEY=your_key streamlit run app.py