Spaces:
Sleeping
Sleeping
File size: 1,166 Bytes
26fe9a7 0c3c572 26fe9a7 0aa5ec6 26fe9a7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
---
title: RAG Knowledge Assistant
emoji: 🧠
colorFrom: blue
colorTo: indigo
sdk: gradio
sdk_version: 4.44.1
app_file: apps/web/app.py
pinned: false
---
# RAG Knowledge Assistant
**🚀 Live Demo Deployed on Hugging Face Spaces: [Check it out here!](https://huggingface.co/spaces/Dheeraj-13/RAG_Knowledge_Assistant)**
A production-ready RAG system featuring:
- **Grounded Answers**: Strict ciation of sources.
- **Evaluation**: Integrated offline eval harness.
- **Observability**: Langfuse tracing.
- **Deployment**: Ready for Hugging Face Spaces.
## Setup
1. **Install Dependencies**:
```bash
pip install uv
uv sync
```
2. **Environment**:
Copy `.env.example` to `.env` and set your keys.
```bash
cp .env.example .env
```
## Usage
### Run Locally
```bash
python apps/web/app.py
```
### Ingestion
```bash
python -m services.rag.ingest --input sample_docs --out data/processed
python -m services.rag.index --processed data/processed --out data/index
```
### Evaluation
```bash
python -m eval.run_eval --data eval/sample_eval.jsonl
```
## Observability
See [observability.md](observability.md) for details on setting up Langfuse.
|