Spaces:
Runtime error
Runtime error
Commit ·
dbb9637
0
Parent(s):
Initial project setup: structure, README, dependencies
Browse files- .gitignore +18 -0
- README.md +32 -0
- app.py +0 -0
- data/.gitkeep +0 -0
- requirements.txt +8 -0
- src/__init__.py +0 -0
- src/embeddings.py +0 -0
- src/loader.py +0 -0
- src/rag.py +0 -0
- src/vectorstore.py +0 -0
.gitignore
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Virtual environment
|
| 2 |
+
venv/
|
| 3 |
+
*.pyc
|
| 4 |
+
__pycache__/
|
| 5 |
+
|
| 6 |
+
# Secrets
|
| 7 |
+
.env
|
| 8 |
+
|
| 9 |
+
# Vector DB (locally generated)
|
| 10 |
+
chroma_db/
|
| 11 |
+
|
| 12 |
+
data/*.pdf
|
| 13 |
+
|
| 14 |
+
# Jupyter
|
| 15 |
+
.ipynb_checkpoints/
|
| 16 |
+
|
| 17 |
+
# OS
|
| 18 |
+
.DS_Store
|
README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# smart-doc-qa
|
| 2 |
+
|
| 3 |
+
A RAG-based document Q&A system. Upload any PDF and ask questions in natural language — get accurate, source-grounded answers.
|
| 4 |
+
|
| 5 |
+
## Features
|
| 6 |
+
- Upload any PDF document
|
| 7 |
+
- Ask questions in natural language
|
| 8 |
+
- Get answers grounded in document content (no hallucination)
|
| 9 |
+
- Powered by semantic search + LLM
|
| 10 |
+
|
| 11 |
+
## Tech Stack
|
| 12 |
+
- **LangChain** — RAG orchestration
|
| 13 |
+
- **ChromaDB** — vector database
|
| 14 |
+
- **HuggingFace** — embeddings (sentence-transformers)
|
| 15 |
+
- **Groq** — LLM inference (Llama 3.1)
|
| 16 |
+
- **FastAPI** — REST API (coming soon)
|
| 17 |
+
|
| 18 |
+
## Status
|
| 19 |
+
Currently in active development.
|
| 20 |
+
|
| 21 |
+
## Setup
|
| 22 |
+
\`\`\`bash
|
| 23 |
+
git clone https://github.com/T0N-M0Y/smart-doc-qa
|
| 24 |
+
cd docu-query
|
| 25 |
+
python -m venv venv
|
| 26 |
+
source venv/bin/activate
|
| 27 |
+
pip install -r requirements.txt
|
| 28 |
+
\`\`\`
|
| 29 |
+
|
| 30 |
+
## 👤 Author
|
| 31 |
+
**Md. Reja E Rabbi Tonmoy** — ML Engineer
|
| 32 |
+
[LinkedIn](https://www.linkedin.com/in/tonmoy-md-reja-e-rabbi/) • [GitHub](https://github.com/T0N-M0Y)
|
app.py
ADDED
|
File without changes
|
data/.gitkeep
ADDED
|
File without changes
|
requirements.txt
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
langchain
|
| 2 |
+
langchain-community
|
| 3 |
+
langchain-groq
|
| 4 |
+
langchain-huggingface
|
| 5 |
+
chromadb
|
| 6 |
+
sentence-transformers
|
| 7 |
+
pypdf
|
| 8 |
+
python-dotenv
|
src/__init__.py
ADDED
|
File without changes
|
src/embeddings.py
ADDED
|
File without changes
|
src/loader.py
ADDED
|
File without changes
|
src/rag.py
ADDED
|
File without changes
|
src/vectorstore.py
ADDED
|
File without changes
|