Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
Zubaish/HubRAG
Zubaish
/
AsyncRAG
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
bdaa156
AsyncRAG
/
app.py
Zubaish
Working RAG with kb folder
cd319c6
3 months ago
raw
Copy download link
history
blame
Safe
206 Bytes
from
fastapi
import
FastAPI
from
rag
import
ask_rag_with_status
app = FastAPI()
@app.get(
"/"
)
def
health
():
return
{
"status"
:
"ok"
}
@app.get(
"/ask"
)
def
ask
(
q:
str
):
return
ask_rag_with_status(q)