dalide commited on
Commit
2ba7782
·
verified ·
1 Parent(s): 61c9e35

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +22 -14
README.md CHANGED
@@ -1,14 +1,22 @@
1
- ---
2
- title: Her2 Rag Chatbot
3
- emoji: 🏃
4
- colorFrom: gray
5
- colorTo: indigo
6
- sdk: streamlit
7
- sdk_version: 1.44.1
8
- app_file: app.py
9
- pinned: false
10
- license: mit
11
- short_description: HER2 Q&A Chatbot
12
- ---
13
-
14
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
1
+ # HER2 Q&A Chatbot
2
+
3
+ This chatbot allows you to ask questions about a scientific paper (HER2 breast cancer study). It uses:
4
+
5
+ - FAISS vector search with sentence-transformer embeddings
6
+ - RAG with local LLM (TinyLlama) for Q&A
7
+ - Streamlit for the UI
8
+ - Reranking with BAAI bge-reranker-base
9
+
10
+ ## How it works
11
+
12
+ 1. The PDF is parsed and split into chunks.
13
+ 2. Chunks are embedded and stored in FAISS.
14
+ 3. A user query retrieves relevant chunks.
15
+ 4. Optionally, a reranker improves the chunk order.
16
+ 5. The top chunks and query are used to generate a response with TinyLlama.
17
+
18
+ ## Running locally
19
+
20
+ ```bash
21
+ pip install -r requirements.txt
22
+ streamlit run app.py