Avinashstat commited on
Commit
d6c71f7
·
verified ·
1 Parent(s): 72a7de1

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -13
README.md CHANGED
@@ -1,13 +1,18 @@
1
- ---
2
- title: Chatbot
3
- emoji: 👀
4
- colorFrom: purple
5
- colorTo: green
6
- sdk: gradio
7
- sdk_version: 6.0.2
8
- app_file: app.py
9
- pinned: false
10
- short_description: PDF reader Chatbot
11
- ---
12
-
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
1
+ # 📄 Chat with your PDF (HuggingFace RAG)
2
+
3
+ This Space lets you upload a PDF and ask questions about it.
4
+
5
+ - Embeddings: `sentence-transformers/all-MiniLM-L6-v2`
6
+ - LLM: `google/gemma-2b-it`
7
+ - Framework: Streamlit
8
+ - Architecture: Retrieval-Augmented Generation (RAG)
9
+
10
+ ## How it works
11
+
12
+ 1. Upload a PDF in the sidebar.
13
+ 2. The app extracts text, splits into chunks, and embeds them.
14
+ 3. When you ask a question, the app:
15
+ - embeds the question
16
+ - retrieves the most relevant chunks
17
+ - passes them with the question to the LLM
18
+ 4. The model answers based **only** on the document context.