HamidOmarov commited on
Commit
8b40d2a
·
1 Parent(s): 64fd9b7

Add Spaces config to README

Browse files
Files changed (1) hide show
  1. README.md +23 -0
README.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: FastAPI RAG API
3
+ emoji: 📄
4
+ colorFrom: gray
5
+ colorTo: blue
6
+ sdk: docker
7
+ app_port: 7860
8
+ pinned: false
9
+ ---
10
+
11
+ # FastAPI RAG API
12
+
13
+ Production-ready sadə RAG API.
14
+
15
+ ## Endpoints
16
+ - `GET /health` — status
17
+ - `POST /upload_pdf` — multipart PDF yüklə
18
+ - `POST /ask_question` — `{question, session_id?, top_k}` ilə soruş
19
+ - `GET /get_history?session_id=...` — söhbət tarixçəsi
20
+
21
+ ## Lokal işə salma
22
+ ```bash
23
+ uvicorn app.api:app --reload