How shantanunair/langchain works
LangChain is a Python library for composing LLMs with prompts, tools, data sources, and application logic. A typical user flow loads or retrieves documents, optionally transforms them, and uses a chain to produce an answer; agents add iterative action and observation. The map also preserves the README’s broader capabilities—models, prompts, memory, and evaluation. Relationships are documented at the capability level from the README; sampled source excerpts are limited, so implementation-level call paths are not asserted.
Main entry points: chains Composable chains · prompts Prompt templates · agents Agents and tools · retrievers Document retrieval
Components 15
Models and prompts
- Prompt templates
langchain/prompts - LLM integrations
langchain/llms - Chat models
langchain/chat_models
Chains and agents
- Composable chains
langchain/chains - Agents and tools
langchain/agents
Data augmentation
- Document loaders
langchain/document_loaders - Document transforms
langchain/document_transformers - Embedding integrations
langchain/embeddings - Document retrieval
langchain/retrievers - Vector stores
langchain/vectorstores
Memory and callbacks
- Conversation memory
langchain/memory - Run callbacks
langchain/callbacks
Evaluation
- LLM evaluation
langchain/evaluation
Other components
- Application developer
- Application result
Connections 16
- Application developer → Prompt templates: configures
README.md - Application developer → Composable chains: composes
README.md - Application developer → Agents and tools: builds
README.md - Prompt templates → LLM integrations: guides generation
README.md - Prompt templates → Chat models: guides generation
README.md - Document loaders → Composable chains: supplies data
README.md - Document retrieval → Composable chains: fetches context
README.md - Vector stores → Document retrieval: stores searchable data
README.md - Embedding integrations → Vector stores: enables vector search
README.md - Document transforms → Composable chains: prepares documents
README.md - Composable chains → LLM integrations: makes model calls
README.md - Composable chains → Conversation memory: persists state
README.md - Agents and tools → Composable chains: uses composed logic
README.md - Composable chains → Run callbacks: reports runs
langchain/chains/router/llm_router.py - Composable chains → Application result: produces output
README.md - LLM evaluation → Composable chains: evaluates outputs
README.md