vinny4 commited on
Commit
8985a46
·
1 Parent(s): 9c37331

changed readme file

Browse files
Files changed (2) hide show
  1. README.md +47 -6
  2. requirements.txt +10 -0
README.md CHANGED
@@ -1,7 +1,48 @@
1
- # RAG
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
- ## What should be the input format?
4
- * Extract text from pdf?
5
- * Use .tex file in submission?
6
- ##### The latex format might not be very good for the LLM (specially when it is a smaller LLM). So, extracting text from pdf would be better.
7
- we could bring it latex if the output doesn't seem to be good enough. Or we are missing out the mathematical equations.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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