RepositoryPython
weiwill88

weiwill88/Local_Pdf_Chat_RAG

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

963sao
188fork
0issue
2lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: chinese-nlp

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: faiss

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: document-qa

#1 Repository của tháng

📚 Local PDF Chat RAG — Bản tham khảo RAG minh bạch bằng Python

Một pipeline RAG đầy đủ: phân tích tài liệu → truy xuất lai → sinh câu trả lời — mọi thành phần đều tách rời, dễ đọc và thay thế.

Local PDF Chat RAG là một dự án mã nguồn mở (MIT), viết bằng Python, hướng tới nhà phát triển muốn hiểu rõ cách hoạt động của toàn bộ chuỗi RAG. Dự án tách quá trình thành các module độc lập: từ parsing, chia nhỏ văn bản, vectorization, đến FAISS, BM25, hybrid search, reranking và sinh câu trả lời. Hai giao diện người dùng được cung cấp: Gradio Web UI và REST API qua FastAPI.

✨ Điểm nổi bật

  • Minh bạch từng bước: Các bước RAG được tách thành module độc lập, dễ theo dõi và gỡ lỗi.
  • Hybrid retrieval: Kết hợp FAISS (vector) và BM25 (từ khóa) để tăng độ chính xác.
  • Reranking linh hoạt: Hỗ trợ CrossEncoder hoặc reranking dựa trên LLM.
  • Đa nền tảng mô hình: Hỗ trợ Ollama cục bản, SiliconFlow và OpenAI-compatible API.
  • Hỗ trợ nhiều định dạng: PDF, TXT, Markdown, DOCX, XLS/XLSX, PPTX.
  • Giao diện đa dạng: Cung cấp cả Gradio Web UI và FastAPI REST API.
  • Kiểm thử tự động: Có test, CI bằng GitHub Actions, hướng dẫn đóng góp và quy trình báo cáo bảo mật.

💡 Vì sao đáng chú ý

Không phải là dịch vụ triển khai sẵn, mà là tài nguyên học tập thực chiến. Kiến trúc rõ ràng giúp người mới dễ dàng thấu hiểu từng giai đoạn xử lý. Phù hợp cho việc thí nghiệm, nghiên cứu RAG hoặc xây dựng ứng dụng tham khảo nhanh.


#RAG #Python #FAISS #BM25 #Gradio #FastAPI #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
pathwaycom/serviette

A no-code RAG server that keeps answers in sync with your documents. Works with 8 vector databases. Built on Pathway.

58.7k
Nov 10, 2026
RepositoryPython
Shubhamsaboo/awesome-llm-apps

100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.

146.6k
Dec 2, 2026
RepositoryGo
infiniflow/ragflow

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

95.0k
Nov 30, 2026
RepositoryGo
ollama/ollama

Get up and running with Inkling, Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

188.9k
Dec 2, 2026
RepositoryPython
HKUDS/LightRAG

[EMNLP2025] LightRAG: Simple and Fast Retrieval-Augmented Generation

41.0k
Dec 2, 2026
RepositoryPython
VectifyAI/PageIndex

📑 PageIndex: Document Index for Vectorless, Reasoning-based RAG

40.8k
Nov 29, 2026
RepositoryPython
deepset-ai/haystack

Open-source AI orchestration framework for building context-engineered, production-ready LLM applications. Design modular pipelines and agent workflows with explicit control over retrieval, routing, memory, and generation. Built for scalable agents, RAG, multimodal applications, semantic search, and conversational systems.

27.1k
Nov 27, 2026
RepositoryPython
Zeyi-Lin/HivisionIDPhotos

⚡️HivisionIDPhotos: a lightweight and efficient AI ID photos tools. 一个轻量级的AI证件照制作算法。

21.8k
Jul 3, 2026
RepositoryPython
vearch/vearch

Distributed vector search for AI-native applications

2.3k
Jul 27, 2026