majeedjak/aok-gesetze-rag
0
AOK Gesetze RAG - Semantic Search
Semantic search over German social insurance laws from the AOK Rechtsdatenbank.
API Endpoints
- POST /search — Semantic search
- GET /health — Health check
- GET /docs — Interactive API docs (Swagger)
Search Example
curl -X POST https://YOUR_SPACE.hf.space/search \
-H "Content-Type: application/json" \
-d '{"query": "Wer gilt als Arbeitnehmer?", "top_k": 5}'Setup
- Create a new HF Space (Docker SDK)
- Upload chunk JSON files to
data/chunks/ - The app auto-embeds and builds the FAISS index on first startup
- Subsequent startups load the pre-built index from disk
