mayooear/ai-pdf-chatbot-langchain
AI PDF chatbot agent built with LangChain & LangGraph
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#7 Repository Của Tuần
🤖 Chatbot AI PDF mạnh mẽ với LangChain + LangGraph
Template monorepo xây dựng chatbot AI xử lý PDF, dùng LangGraph để điều phối ingestion và retrieval, lưu embedding trên Supabase.
Dự án là ví dụ kèm theo cuốn sách Learning LangChain (O'Reilly). Chatbot hỗ trợ tải lên PDF, phân tích thành tài liệu, lưu embedding vào cơ sở dữ liệu vector (Supabase), sau đó trả lời câu hỏi người dùng bằng OpenAI hoặc nhà cung cấp LLM khác thông qua LangChain và LangGraph.
✨ Điểm nổi bật
- Document Ingestion Graph: Tải lên và phân tích PDF thành đối tượng Document, lưu embedding vào SupabaseVectorStore.
- Retrieval Graph: Xử lý câu hỏi, quyết định có truy xuất tài liệu hay trả lời trực tiếp, đưa ra câu trả lời ngắn gọn kèm nguồn tham khảo.
- Streaming Responses: Truyền phát câu trả lời theo thời gian thực từ server đến giao diện.
- LangGraph Integration: Dùng ma trận trạng thái để điều phối ingestion, routing và sinh phản hồi, hỗ trợ trực quan hóa và gỡ lỗi từng bước.
- Next.js Frontend: Hỗ trợ tải file, trò chuyện thời gian thực, dễ dàng mở rộng với React và Tailwind CSS.
💡 Vì sao đáng chú ý
Dự án tích hợp toàn bộ pipeline từ ingestion đến retrieval bằng LangGraph, giúp người dùng dễ dàng tùy biến agent. Kiến trúc monorepo rõ rệt giữa backend (Node.js/TypeScript) và frontend (Next.js/React) giúp phát triển paralel. Phù hợp cho người mới học LangChain/LangGraph muốn xây dựng hệ thống hỏi đáp tài liệu thông minh.
#AI #LangChain #LangGraph #NextJS #PDFChatbot #TiniX
Similar Projects
Discover other similar projects and AI models.
Python tool for converting files and office documents to Markdown.
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
50+ tutorials and implementations for Generative AI Agent techniques, from basic conversational bots to complex multi-agent systems.
An open-source long-horizon SuperAgent harness that researches, codes, and creates. With the help of sandboxes, memories, tools, skill, subagents and message gateway, it handles different levels of tasks that could take minutes to hours.
The Frontend Stack for Agents & Generative UI. React, Angular, Mobile, Slack, and more. Makers of the AG-UI Protocol
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.