Discover and explore top open-source AI tools and projects—updated daily.
NanGePlusAI chatbot with memory and tool use
Top 81.9% on SourcePulse
This project provides a framework for building intelligent customer service chatbots with memory capabilities, leveraging LangGraph, DeepSeek-R1, FastAPI, and Gradio. It supports various large language models, including GPT, domestic models via OneApi, Ollama, and Alibaba's Tongyi Qianwen, offering a flexible and extensible solution for conversational AI applications.
How It Works
The core of the project utilizes LangGraph to define a stateful, graph-based workflow for chatbot interactions. This graph structure allows for complex conversational flows, including dynamic routing, tool integration, and memory management. Short-term memory is maintained within the graph's thread, while long-term memory is persisted using PostgreSQL, enabling continuous and context-aware conversations. The system supports tool calling, dynamic routing based on tool types (retrieval vs. non-retrieval), and includes mechanisms for document relevance scoring and query rewriting.
Quick Start & Requirements
pip install langgraph==0.2.74 langchain-openai==0.3.6 fastapi==0.115.8 uvicorn==0.34.0 gradio==5.18.0. For PostgreSQL persistence, install langgraph-checkpoint-postgres and psycopg2.llms.py.pgvector extension is required for persistent memory. Docker can be used to set up the database.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
openai.BadRequestError when using certain models (e.g., OneApi, Qwen) with specific embeddings, requiring a modification in the langchain_openai/embeddings/base.py source code.6 months ago
Inactive
langchain-ai
Shubhamsaboo