Spaces:
Build error
Build error
GitHub Actions commited on
Commit Β·
ff034a4
1
Parent(s): 9e46312
Prepare for HF Spaces deployment
Browse files
README.md
CHANGED
|
@@ -1,95 +1,35 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
-
[](LICENSE)
|
| 5 |
-
[](https://huggingface.co/spaces/AIenthusSP/RAG-Documind-AI)
|
| 6 |
|
| 7 |
-
|
| 8 |
|
| 9 |
-
##
|
| 10 |
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
-
##
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
- π **Multi-Format Support** β PDF, Markdown, and plain text documents.
|
| 19 |
-
- β‘ **Fast Retrieval** β Sub-2s semantic search with ChromaDB vector database.
|
| 20 |
-
- π **Full Observability** β Langfuse tracing and monitoring.
|
| 21 |
-
- π§ͺ **Automated Evaluation** β Promptfoo quality testing.
|
| 22 |
-
- π **CI/CD Pipeline** β GitHub Actions for testing and deployment to HuggingFace Spaces.
|
| 23 |
|
| 24 |
-
##
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
| Vector DB | ChromaDB |
|
| 32 |
-
| Backend | FastAPI |
|
| 33 |
-
| Frontend | Streamlit |
|
| 34 |
-
| Observability | Langfuse |
|
| 35 |
-
| Evaluation | Promptfoo |
|
| 36 |
-
| Deployment | Docker Β· GitHub Actions Β· HuggingFace Spaces |
|
| 37 |
-
|
| 38 |
-
## π Quick Start
|
| 39 |
-
|
| 40 |
-
```bash
|
| 41 |
-
# Clone the repository
|
| 42 |
-
git clone https://github.com/yourusername/rag-docs-assistant.git
|
| 43 |
-
cd rag-docs-assistant
|
| 44 |
-
|
| 45 |
-
# Create virtual environment
|
| 46 |
-
python -m venv venv
|
| 47 |
-
source venv/bin/activate # Windows: venv\Scripts\activate
|
| 48 |
-
|
| 49 |
-
# Install dependencies
|
| 50 |
-
pip install -r requirements.txt
|
| 51 |
-
|
| 52 |
-
# Set up environment variables
|
| 53 |
-
cp .env.example .env
|
| 54 |
-
|
| 55 |
-
# Start backend (Terminal 1)
|
| 56 |
-
uvicorn src.api.main:app --reload --port 8000
|
| 57 |
-
|
| 58 |
-
# Start frontend (Terminal 2)
|
| 59 |
-
streamlit run src/frontend/app.py --server.port 7860
|
| 60 |
-
```
|
| 61 |
-
|
| 62 |
-
## π Project Structure
|
| 63 |
-
|
| 64 |
-
```
|
| 65 |
-
rag-docs-assistant/
|
| 66 |
-
βββ src/
|
| 67 |
-
β βββ api/ # FastAPI backend & routes
|
| 68 |
-
β βββ rag/ # RAG pipeline (retrieval, chunking, generation)
|
| 69 |
-
β βββ llmops/ # LLMOps integrations (Langfuse, guardrails)
|
| 70 |
-
β βββ frontend/ # Streamlit UI (login, chat, collections)
|
| 71 |
-
βββ evals/ # Evaluation datasets & configs
|
| 72 |
-
βββ tests/ # Unit and integration tests
|
| 73 |
-
βββ config/ # Configuration files
|
| 74 |
-
βββ docs/ # Documentation & architecture diagrams
|
| 75 |
-
βββ .github/ # CI/CD workflows
|
| 76 |
-
```
|
| 77 |
-
|
| 78 |
-
## π How BYOK Works
|
| 79 |
-
|
| 80 |
-
1. User enters their API key on the login page
|
| 81 |
-
2. Key is hashed (SHA-256) to create a unique `user_id`
|
| 82 |
-
3. All collections are namespaced: `{user_id}_{collection_name}`
|
| 83 |
-
4. User A cannot see User B's data β complete isolation
|
| 84 |
-
|
| 85 |
-
## πΊοΈ Roadmap
|
| 86 |
-
|
| 87 |
-
- [ ] Agentic multi-step reasoning for complex queries
|
| 88 |
-
- [ ] Knowledge graph extraction and visualization
|
| 89 |
-
- [ ] Conflict detection across documents
|
| 90 |
-
- [ ] Hybrid retrieval (dense vectors + sparse BM25)
|
| 91 |
-
- [ ] Automated RAG evaluation with RAGAS framework
|
| 92 |
-
|
| 93 |
-
## π License
|
| 94 |
-
|
| 95 |
-
MIT License β see [LICENSE](LICENSE) for details.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: DocuMind AI
|
| 3 |
+
emoji: π§
|
| 4 |
+
colorFrom: purple
|
| 5 |
+
colorTo: blue
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_port: 7860
|
| 8 |
+
pinned: false
|
| 9 |
+
license: mit
|
| 10 |
+
---
|
| 11 |
|
| 12 |
+
# DocuMind AI
|
|
|
|
|
|
|
| 13 |
|
| 14 |
+
RAG-Powered Documentation Assistant built with LangChain, ChromaDB, and Google Gemini.
|
| 15 |
|
| 16 |
+
## Features
|
| 17 |
|
| 18 |
+
- π¬ Chat interface for document Q&A
|
| 19 |
+
- π€ Upload PDF, Markdown, and text files
|
| 20 |
+
- π Semantic search with embeddings
|
| 21 |
+
- π Source attribution with citations
|
| 22 |
|
| 23 |
+
## Usage
|
| 24 |
|
| 25 |
+
1. Upload your documents using the sidebar
|
| 26 |
+
2. Ask questions about your documents
|
| 27 |
+
3. View source citations for transparency
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
+
## Tech Stack
|
| 30 |
|
| 31 |
+
- **Frontend**: Streamlit
|
| 32 |
+
- **Backend**: FastAPI
|
| 33 |
+
- **Vector Store**: ChromaDB
|
| 34 |
+
- **Embeddings**: HuggingFace (all-MiniLM-L6-v2)
|
| 35 |
+
- **LLM**: Google Gemini
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
start.sh
CHANGED
|
File without changes
|