A semantic document Q&A API - upload a PDF and ask questions about it. The API retrieves relevant context from your document and generates grounded answers using an LLM.
- Upload any PDF document via
/upload - Ask questions about the document via
/ask - Answers are generated using retrieved context, not hallucination
- Python, FastAPI
- LangChain, ChromaDB
- FastEmbed Embeddings (BAAI/bge-small-en-v1.5)
- OpenRouter API (LLM)
- Docker, Hugging Face Spaces
POST /upload- accepts a PDF, chunks and embeds it into ChromaDBPOST /ask- accepts a question, retrieves relevant chunks, returns LLM answer
DeepReader on Hugging Face Spaces
No frontend - interact with the API directly via Swagger UI at:
https://abubakker66-deepreader.hf.space/docs
git clone https://github.com/abubakkersiddiqq/deep-reader
cd deep-reader
cp .env.example .env # add your OpenRouter API key
docker build -t deep-reader .
docker run -p 8000:8000 deep-readerLocal Swagger UI available at: http://localhost:8000/docs