Lang
LangChain Academy - courses
Overviews
Integrations - by component
-
Models - chat
-
Models - embedding
-
Tools & toolkits
-
Text splitters
-
Vector stores
-
Doc loaders
-
Key-value stores
-
does: configure tool to attach raw docs as artifacts to each ToolMessage.
-
purpose: lets us access document metadata
LangChain¶
LangChain | Core components¶
<image>
-
Agents: a framework to orchestrate tool-use via LLM's reasoning. They run tools in a loop to achieve a goal.
-
Models: reasoning engines that take input ⟶ gen output
-
Messages and tools
-
Messages (memory): units of context that carry context & conversation state
-
Tools: callable functions/APIs that retrieve external data
-
-
Short-term memory, Streaming, Structured output
-
Short-term memory: in-session context stores that retain recent interaction history
-
Streaming: for displaying output progressively (even before a complete response is ready)
-
Structured output: format for model output (eg JSON) for the LLM
-
LangChain | Quickstart | Build a real-world agent¶
Quickstart Create these to build an agent:
-
write prompts
-
tools: integrate w external data
-
depends on runtime context
-
interacts with agent memory
-
-
model config: for consistent responses
-
response format for predictable results
-
memory for context across chats
-
invoke agent