Spaces:
Sleeping
Sleeping
changed readme file
Browse files- README.md +47 -6
- requirements.txt +10 -0
README.md
CHANGED
|
@@ -1,7 +1,48 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
#
|
| 4 |
-
|
| 5 |
-
*
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: ScholarBot
|
| 3 |
+
emoji: 📚
|
| 4 |
+
colorFrom: indigo
|
| 5 |
+
colorTo: blue
|
| 6 |
+
sdk: streamlit
|
| 7 |
+
sdk_version: "1.35.0"
|
| 8 |
+
python_version: "3.10"
|
| 9 |
+
app_file: app.py
|
| 10 |
+
suggested_hardware: cpu-basic
|
| 11 |
+
suggested_storage: medium
|
| 12 |
+
fullWidth: true
|
| 13 |
+
header: default
|
| 14 |
+
short_description: "Upload research papers and chat with them using RAG and LLMs."
|
| 15 |
+
tags:
|
| 16 |
+
- rag
|
| 17 |
+
- langchain
|
| 18 |
+
- streamlit
|
| 19 |
+
- chatbot
|
| 20 |
+
- document-qa
|
| 21 |
+
- ai-research
|
| 22 |
+
- huggingface
|
| 23 |
+
- vector-database
|
| 24 |
+
pinned: true
|
| 25 |
+
---
|
| 26 |
|
| 27 |
+
# 🤖 ScholarBot
|
| 28 |
+
|
| 29 |
+
**ScholarBot** is an AI-powered research assistant that enables you to upload research papers and chat with them. It leverages cutting-edge Retrieval-Augmented Generation (RAG) pipelines and large language models (LLMs) to ground responses in the actual content of uploaded PDFs.
|
| 30 |
+
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
## Getting Started (Local Setup)
|
| 34 |
+
|
| 35 |
+
```bash
|
| 36 |
+
# Clone the repo
|
| 37 |
+
git clone https://huggingface.co/spaces/vinny4/ScholarBot
|
| 38 |
+
cd ScholarBot
|
| 39 |
+
|
| 40 |
+
# Install dependencies
|
| 41 |
+
pip install -r requirements.txt
|
| 42 |
+
|
| 43 |
+
# Create a .env file with OPENAI_API_KEY and GROQ_API_KEY
|
| 44 |
+
echo "OPENAI_API_KEY=your_openai_api_key" > .env
|
| 45 |
+
echo "GROQ_API_KEY=your_groq_api_key" >> .env
|
| 46 |
+
|
| 47 |
+
# Run Streamlit app
|
| 48 |
+
streamlit run app.py
|
requirements.txt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
langchain>=0.1.14
|
| 2 |
+
langchain-groq>=0.0.3
|
| 3 |
+
langchain-community>=0.0.26
|
| 4 |
+
chromadb>=0.4.24
|
| 5 |
+
sentence-transformers>=2.2.2
|
| 6 |
+
pypdf>=3.9.1
|
| 7 |
+
streamlit>=1.34.0
|
| 8 |
+
python-dotenv>=1.0.1
|
| 9 |
+
PyYAML>=6.0.1
|
| 10 |
+
requests>=2.31.0
|