HamidOmarov commited on
Commit
a7a634d
·
1 Parent(s): c6a1bc3

Fix: README.md as UTF-8 text; force *.md as text

Browse files
Files changed (2) hide show
  1. .gitignore +1 -0
  2. 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 "[email protected]" 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