AsyncRAG / app.py
Zubaish
Working RAG with kb folder
cd319c6
raw
history blame
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)