Team Ai
Apppublic

prashantbhandari/rag-linux-kernel

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes
App README

๐Ÿ“š Chat with Any Book (RAG)

Upload any PDF book or document and ask questions โ€” get answers with exact page citations.

How it works

  1. 1.Upload a PDF
  2. 2.The book is split into ~800-token chunks and embedded
  3. 3.Your question is matched to the most relevant passages
  4. 4.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

bash
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