Spaces:
Configuration error
Configuration error
HER2 Q&A Chatbot
This chatbot allows you to ask questions about a scientific paper (HER2 breast cancer study). It uses:
- FAISS vector search with sentence-transformer embeddings
- RAG with local LLM (TinyLlama) for Q&A
- Streamlit for the UI
- Reranking with BAAI bge-reranker-base
Configuration
sdk: streamlit
app_file: app.py
runtime: python
How it works
- The PDF is parsed and split into chunks.
- Chunks are embedded and stored in FAISS.
- A user query retrieves relevant chunks.
- Optionally, a reranker improves the chunk order.
- The top chunks and query are used to generate a response with TinyLlama.
Running locally
pip install -r requirements.txt
streamlit run app.py
Hosted Demo
👉 Available on Hugging Face Spaces!