What is LangChain?
LangChain is a framework ecosystem for composing LLM calls with prompts, retrievers, tools, parsers, and other application components.
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 157–168 of 3610 questions
LangChain is a framework ecosystem for composing LLM calls with prompts, retrievers, tools, parsers, and other application components.
A prompt template separates reusable instructions from variable input fields and formats them into model messages.
A retriever takes a query and returns relevant documents from a data source, such as a vector store or search engine.
An output parser converts model output into a desired representation, such as a typed object or list.
A chain composes steps such as prompt formatting, model invocation, retrieval, and output parsing into a reusable workflow.
LangGraph is a framework for building stateful, graph-shaped workflows for LLM applications, including loops, branching, tool use, and human review.
A node is a function or runnable that reads workflow state and returns updates to it.
An edge determines which node executes after another node, while conditional edges select the next step based on state or a routing decision.
Checkpointing persists graph state at defined points so a workflow can resume after interruption and support inspection or human-in-the-loop flows.
Set maximum step counts, define explicit stop conditions, validate tool results, and route repeated failures to a terminal or human-review state.
Tool calling allows a model to request a defined function with structured arguments, such as searching a catalog or calculating a total.
Ordinary generation returns content for a user or another component, while tool calling returns a structured request to invoke a named function.