Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

chat-langchain

> 编程语言
Open source

Chat LangChain A documentation assistant deployed as a Managed Deep Agent. Overview This is a documentation assistant agent that helps answ…

6.4K stars0 likes0 views
WebsiteGitHub

About

Chat LangChain A documentation assistant deployed as a Managed Deep Agent. Overview This is a documentation assistant agent that helps answ…

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

bash
# 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

bash
# 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

bash
# Build the Managed Deep Agent bundle
uv run mda dev .

# Or with pip
mda dev .

Frontend

bash
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

…

How It Works

The agent uses a docs-first research strategy:

  1. Guardrails Check - Validates the query is LangChain-related
  2. Documentation Search - Searches official docs via the managed MCP connector
  3. Knowledge Base - Searches Pylon for known issues/solutions
  4. Link Validation - Verifies any URLs before including them
  5. Response Generation - Synthesizes a helpful answer

Deployment

Managed Deep Agents

bash
mda deploy .

What MDA owns in this deployment:

  • Identity — identity.py verifies Supabase access tokens (multi-region) and issues/verifies guest tokens via POST /identity/guest.
  • HTTP surface — managed ingress; no custom FastAPI app.
  • LangSmith browser ops — connectors/langsmith.py proxies feedback and trace read/share so LANGSMITH_API_KEY never reaches the browser.
  • Docs MCP — connectors/mcp.py attaches the LangChain docs MCP tools.
  • Thread titles — generated in the browser (deterministic truncation).
  • Checkpointer — managed by the Managed Deep Agents runtime.

Resources

  • LangChain Documentation
  • LangGraph Documentation
  • LangSmith Documentation

License

MIT

Issues· 370 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 24, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言