Spaces:
Configuration error
Configuration error
Update README.md
Browse files
README.md
CHANGED
@@ -1,14 +1,22 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|