quantumbit commited on
Commit
4444857
·
verified ·
1 Parent(s): 131abad

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +33 -6
README.md CHANGED
@@ -1,11 +1,38 @@
1
  ---
2
- title: CRag
3
- emoji: 🐢
4
- colorFrom: yellow
5
- colorTo: yellow
6
  sdk: docker
 
7
  pinned: false
8
- short_description: FastAPI based RAG Backend
9
  ---
10
 
11
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: RAG System
 
 
 
3
  sdk: docker
4
+ app_port: 8000
5
  pinned: false
 
6
  ---
7
 
8
+ # RAG System
9
+
10
+ Production-grade Retrieval Augmented Generation backend with FAISS, hybrid retrieval, reranking, and safety guardrails.
11
+
12
+ ## API
13
+
14
+ - POST /ingest/file
15
+ - GET /ingest/jobs/{job_id}/events
16
+ - POST /query
17
+ - POST /query/pipeline
18
+ - GET /collections
19
+ - GET /collections/{collection_name}/viz
20
+ - POST /collections/{collection_name}/query_similarity
21
+ - GET /documents/{collection_name}/raw
22
+ - POST /evaluate
23
+
24
+ ## Runtime
25
+
26
+ This Space uses the Docker runtime and expects a Dockerfile at the repo root.
27
+ The FastAPI app listens on port 8000.
28
+
29
+ ## Environment Variables
30
+
31
+ Required:
32
+ - OPENAI_API_KEY
33
+
34
+ Optional:
35
+ - EMBEDDING_DEVICE (default: cuda)
36
+ - CACHE_ENABLED (default: false)
37
+ - REDIS_URL (default: redis://localhost:6379)
38
+ - HF_TOKEN (required only if downloading gated Llama Guard weights)