#119 · Primary category: Knowledge Base & RAG

Local_Pdf_Chat_RAG

bm25 chinese-nlp deepseek document-qa faiss fastapi gradio hybrid-search ollama python rag retrieval-augmented-generation

Transparent Python RAG reference with FAISS + BM25 hybrid retrieval, reranking, Gradio UI, and FastAPI.

Project last updated:08/16/26

GitHub Stars

949

Forks

179

Contributors

3

License

MIT

Why we included this project

For developers who want to see how retrieval-augmented generation actually works instead of treating a framework as a black box, this is a readable reference implementation. The pipeline is split into modules for document parsing, chunking, embedding with FAISS, BM25 keyword retrieval, hybrid search, reranking, and answer generation, and each piece can be read, tested, or swapped on its own. Both a Gradio interface and a FastAPI endpoint expose the same workflow, so you can upload a PDF and ask questions locally without much setup. Ollama and OpenAI-compatible backends are supported, which keeps offline experimentation practical. The repo is upfront that this is a teaching tool, not a hardened service, and it flags the limitations you should expect before trusting it with real data.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category