GitHub Actions commited on
Commit
ff034a4
Β·
1 Parent(s): 9e46312

Prepare for HF Spaces deployment

Browse files
Files changed (2) hide show
  1. README.md +27 -87
  2. start.sh +0 -0
README.md CHANGED
@@ -1,95 +1,35 @@
1
- # 🧠 DocuMind AI β€” Documentation Query System with Semantic Retrieval
 
 
 
 
 
 
 
 
 
2
 
3
- [![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
4
- [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
5
- [![Deploy](https://img.shields.io/badge/πŸ€—-Live%20Demo-yellow)](https://huggingface.co/spaces/AIenthusSP/RAG-Documind-AI)
6
 
7
- A **production-grade, multi-tenant AI documentation assistant** powered by Retrieval-Augmented Generation (RAG). Upload documents, ask questions in natural language, and get instant, cited answers β€” using your own LLM provider of choice.
8
 
9
- ## System Architecture
10
 
11
- ![DocuMind AI Architecture](docs/architecture_diagram.png)
 
 
 
12
 
13
- ## ✨ Features
14
 
15
- - πŸ” **Semantic Search** β€” Finds answers by meaning, not keywords. "Scaling limitations" matches "performance bottlenecks."
16
- - πŸ”‘ **BYOK Multi-Tenancy** β€” Bring Your Own Key. Each user's data is fully isolated via API key hashing.
17
- - πŸ”„ **4 LLM Providers** β€” Gemini, OpenAI, Claude, and Groq via unified LangChain interface.
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
- ## πŸ› οΈ Tech Stack
25
 
26
- | Layer | Technology |
27
- |-------|------------|
28
- | LLM Providers | Gemini Β· OpenAI Β· Claude Β· Groq |
29
- | Orchestration | LangChain + LCEL |
30
- | Embeddings | HuggingFace Sentence Transformers |
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