Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/langgraph rag agent #481

Merged
merged 29 commits into from
Feb 20, 2025
Merged

Feat/langgraph rag agent #481

merged 29 commits into from
Feb 20, 2025

Conversation

mayooear
Copy link
Owner

This monorepo is a customizable template example of an AI agent chatbot that ingests PDF documents, stores embeddings in a vector database (Supabase), and then answers user queries using OpenAI (or another LLM provider) utilising LangChain and LangGraph as orchestration frameworks.

This template is also an example template associated with the book Learning LangChain (O'Reilly): Building AI and LLM applications with LangChain and LangGraph.

Features

  • Document Ingestion Graph: Upload and parse PDFs into Document objects, then store vector embeddings into a vector database (we use Supabase in this example).
  • Retrieval Graph: Handle user questions, decide whether to retrieve documents or give a direct answer, then generate concise responses with references to the retrieved documents.
  • Streaming Responses: Real-time streaming of partial responses from the server to the client UI.
  • LangGraph Integration: Built using LangGraph’s state machine approach to orchestrate ingestion and retrieval, visualise your agentic workflow, and debug each step of the graph.
  • Next.js Frontend: Allows file uploads, real-time chat, and easy extension with React components and Tailwind.

…t cases for direct answers, context retrieval, and error handling
@mayooear mayooear merged commit 92b8bb6 into main Feb 20, 2025
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant