chat-langchain
A documentation assistant demonstrating managed deep agent deployment and LangChain agents.
GraphCanon updated 1w · GitHub synced 1w
Decision brief
Chat-langchain is a documentation assistant that leverages managed deep agents and LangChain middleware to provide on-topic responses and support knowledge base queries.
Good fit when
- You need a specialized tool for accessing help and information about LangChain technologies, such as LangGraph and LangSmith.
- Your project benefits from a production-ready setup with guardrails that prevent the chatbot from providing off-topic or irrelevant answers.
Avoid when
- Your team prefers to use general-purpose AI agents over those specialized for a specific technology stack like LangChain.
- You do not require managed deployment services and prefer more control over deployment configurations through traditional methods rather than Managed Deep Agents.
Observed Jul 14, 2026 · Source: enrich:decision_facts
Verify the decision
Maintenance and security
Full trust report- Maintenance
- Very active (1d since push)
- As of 1w
- Provenance
- Not a fork · Organization account
- As of 1w
- Security (OSV)
- No lockfile
- As of 1mo
Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.
Backing
Company context for LangChain. Display-only - separate from trust and ranking.
- Company
- LangChain·GitHub org profile·1mo
- Funding
- $25,000,000 (2024-02)·GraphCanon curated seed (public press)·1mo
- Commercial model
- Open core·GraphCanon curated seed·1mo
Install
npm install chat-langchain npmSimilar tools
Same-category neighbours. No typed graph edges are catalogued for this tool yet.
Evidence and technical details
Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.
Overview
The repository contains a chatbot-like documentation assistant that answers queries about LangChain technologies with the help of managed deployment services and middleware support through LangChain Agents, including features such as documentation search, support knowledge base lookup, link validation, and conversation guardrails. It uses TypeScript for its backend alongside Python dependencies and includes a Next.js frontend.
Capability facts
- Languages
- typescript, python
Source: github.language+pyproject.toml · Aug 15, 2026
Categories
Graph entities
Compatibility
Sourced claims from the README excerpt - not unsourced marketing copy.
Source: README excerpt (regex_v1, Aug 15, 2026)
| `ANTHROPIC_API_KEY` | Anthropic API key (or use another provider) |Source link
Source: README excerpt (regex_v1, Aug 15, 2026)
# Chat LangChainSource link
Source: README excerpt (regex_v1, Aug 15, 2026)
is a documentation assistant agent that helps answer questions about LangChain, LangGraph, and LangSmith. It demonstrates how to build a production-ready agent using:Source link
Tags
README
Chat LangChain
A documentation assistant deployed as a Managed Deep Agent.
Overview
This is a documentation assistant agent that helps answer questions about LangChain, LangGraph, and LangSmith. It demonstrates how to build a production-ready agent using:
- Managed Deep Agents - For managed deployment, identity, and connectors
- LangChain Agents - For agent creation with middleware support
- Guardrails - To keep conversations on-topic
The repo also includes a Next.js frontend in frontend/ for the public chat UI.
Features
- Documentation Search - Searches official LangChain docs via managed MCP
- Support KB - Searches the Pylon knowledge base for known issues
- Link Validation - Verifies URLs before including in responses
- Guardrails - Filters off-topic queries
Quick Start
Prerequisites
- Python 3.11+
- uv (recommended) or pip
Installation
# Clone the repository
git clone https://github.com/langchain-ai/chat-langchain.git
cd chat-langchain
# Install dependencies with uv
uv sync
# Or with pip
pip install -e .
Configuration
# Copy environment template
cp .env.example .env
# Edit .env with your API keys
Required Environment Variables
| Variable | Description |
|---|---|
ANTHROPIC_API_KEY | Anthropic API key (or use another provider) |
PYLON_API_KEY | Pylon API key for support KB |
PYLON_KB_ID | Pylon knowledge base ID for support articles |
USE_LOCAL_PROMPTS | Optional. Set to true to use local prompt files instead of pulling Prompt Hub prompts |
Running Locally
Backend
# Build the Managed Deep Agent bundle
uv run mda dev .
# Or with pip
mda dev .
Frontend
cd frontend
npm ci
npm run dev:local
Point the frontend at the local MDA deployment via NEXT_PUBLIC_LANGGRAPH_API_URL
(see frontend/.env.local.example). Auth, guest issuance, and LangSmith
operations go through the managed identity and connector surface.
Project Structure
├── agent.py # Managed Deep Agent entrypoint
├── identity.py # MDA identity contract (Supabase + guest)
├── instructions.md # Managed Deep Agent system prompt
├── connectors/
│ ├── langsmith.py # LangSmith feedback + trace connector
│ └── mcp.py # Managed MCP docs connector
├── src/
│ ├── agent/
│ │ └── config.py # Model configuration
│ ├── tools/
│ │ ├── pylon_tools.py # Support KB tools
│ │ ├── pricing_tools.py # Pricing fetch
│ │ └── link_check_tools.py # URL validation
│ ├── prompts/
│ │ ├── docs_agent_prompt.py # Hub push / eval mirror of instructions.md
│ │ ├── guardrails_prompts.py
│ │ └── context_summary_prompt.py
│ └── middleware/
│ ├── guardrails_middleware.py
│ ├── ingress_guards_middleware.py
│ └── retry_middleware.py
├── frontend/ # Next.js public chat UI
└── pyproject.toml # Python project config
How It Works
The agent uses a docs-first research strategy:
- Guardrails Check - Validates the query is LangChain-related
- Documentation Search - Searches official docs via the managed MCP connector
- Knowledge Base - Searches Pylon for known issues/solutions
- Link Validation - Verifies any URLs before including them
- Response Generation - Synthesizes a helpful answer
Deployment
Managed Deep Agents
mda deploy .
What MDA owns in this deployment:
- Identity —
identity.pyverifies Supabase access tokens (
For agents
This page has a .md twin and JSON over the API.