Spaces:
Sleeping
Sleeping
Commit
·
a7a634d
1
Parent(s):
c6a1bc3
Fix: README.md as UTF-8 text; force *.md as text
Browse files- .gitignore +1 -0
- README.md +32 -1
.gitignore
CHANGED
|
@@ -11,3 +11,4 @@ __pycache__/
|
|
| 11 |
*.faiss
|
| 12 |
faiss.index
|
| 13 |
*.pdf
|
|
|
|
|
|
| 11 |
*.faiss
|
| 12 |
faiss.index
|
| 13 |
*.pdf
|
| 14 |
+
README.bak.md
|
README.md
CHANGED
|
@@ -1 +1,32 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: FastAPI RAG API
|
| 3 |
+
emoji: 🧠
|
| 4 |
+
colorFrom: indigo
|
| 5 |
+
colorTo: blue
|
| 6 |
+
sdk: fastapi
|
| 7 |
+
app_file: app/api.py
|
| 8 |
+
pinned: false
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# FastAPI RAG API
|
| 12 |
+
|
| 13 |
+
Minimal backend for RAG (FastAPI + FAISS + Sentence-Transformers).
|
| 14 |
+
Open `/docs` for the interactive API.
|
| 15 |
+
|
| 16 |
+
## Live
|
| 17 |
+
- API (HF Space): https://huggingface.co/spaces/HamidOmarov/FastAPI-RAG-API
|
| 18 |
+
- Dashboard (HF Space): https://huggingface.co/spaces/HamidOmarov/RAG-Dashboard
|
| 19 |
+
|
| 20 |
+
## What it does
|
| 21 |
+
Ask questions about your PDFs using vector search (FAISS) + sentence embeddings.
|
| 22 |
+
Robust to numeric/table-heavy docs, with optional AZ→EN translation and fallbacks.
|
| 23 |
+
|
| 24 |
+
## Quick test
|
| 25 |
+
curl -F "file=@sample.pdf" https://<API>/upload_pdf
|
| 26 |
+
curl -H "Content-Type: application/json" -d '{"question":"What is the document about?","top_k":5}' https://<API>/ask_question
|
| 27 |
+
|
| 28 |
+
## Ops
|
| 29 |
+
- GET /health • GET /stats • GET /get_history • POST /reset_index
|
| 30 |
+
|
| 31 |
+
## Stack
|
| 32 |
+
FastAPI · sentence-transformers · FAISS · pypdf · Hugging Face Spaces
|