FastAPI-RAG-API / tests /test_requests.http
HamidOmarov's picture
Initial commit: FastAPI RAG API
64fd9b7
raw
history blame
331 Bytes
# PDF yüklə
curl -X POST "http://127.0.0.1:8000/upload_pdf" \
-H "accept: application/json" -H "Content-Type: multipart/form-data" \
-F "file=@/path/to/file.pdf"
# Sual ver
curl -X POST "http://127.0.0.1:8000/ask_question" \
-H "Content-Type: application/json" \
-d '{"question":"Bu sənəd nədən bəhs edir?","top_k":5}'