FastAPI-RAG-API / README.md
HamidOmarov's picture
docs: clean README frontmatter (UTF-8 no BOM)
2538431
|
raw
history blame
952 Bytes
metadata
title: FastAPI RAG API
emoji: 🧠
colorFrom: indigo
colorTo: blue
sdk: fastapi
app_file: app/api.py
pinned: false

FastAPI RAG API

Minimal backend for RAG (FastAPI + FAISS + Sentence-Transformers). Open /docs for the interactive API.

Live

What it does

Ask questions about your PDFs using vector search (FAISS) + sentence embeddings. Robust to numeric/table-heavy docs, with optional AZ→EN translation and fallbacks.

Quick test

curl -F "[email protected]" https:///upload_pdf curl -H "Content-Type: application/json" -d '{"question":"What is the document about?","top_k":5}' https:///ask_question

Ops

  • GET /health • GET /stats • GET /get_history • POST /reset_index

Stack

FastAPI · sentence-transformers · FAISS · pypdf · Hugging Face Spaces