langchain-reference-architecture

Featured

Implement LangChain reference architecture for production systems: layered design, provider abstraction, chain registry, RAG pipelines, and multi-agent orchestration. Trigger: "langchain architecture", "langchain design patterns", "langchain scalable", "langchain enterprise", "LLM architecture".

AI & Automation 2,249 stars 312 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# LangChain Reference Architecture ## Overview Production architectural patterns for LangChain: layered project structure, provider abstraction for vendor flexibility, chain registry for dynamic management, RAG architecture, and multi-agent orchestration. ## Layered Architecture ``` src/ ├── api/ # HTTP layer (Express/Fastify/FastAPI) │ ├── routes/ │ │ ├── chat.ts # POST /api/chat, /api/chat/stream │ │ └── documents.ts # POST /api/documents/ingest │ └── middleware/ │ ├── auth.ts # JWT/OAuth validation │ └── rateLimit.ts # Per-user rate limiting ├── core/ # Business logic (pure, testable) │ ├── chains/ │ │ ├── summarize.ts # Summarize chain factory │ │ ├── qa.ts # Q&A chain factory │ │ └── rag.ts # RAG chain factory │ ├── agents/ │ │ └── assistant.ts # Agent with tools │ └── tools/ │ ├── calculator.ts │ └── search.ts ├── infra/ # External integrations │ ├── llm/ │ │ └── factory.ts # LLM provider factory │ ├── vectorStore/ │ │ └── pinecone.ts # Vector store setup │ └── cache/ │ └── redis.ts # Response caching ├── config/ │ ├── index.ts # Config loader + validation │ └── models.ts # Model configurations └── index.ts # App entry point ``` ## Provider Abstraction (LLM Factory) ```typescript // src/infra/llm/factory.ts import { ChatOpenAI } from...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Related Skills