LangChain's core agent API, create_agent, takes a model, a list of tools and a system prompt, and runs the model loop. Middleware adds behavior step by step, such as guardrails, retries and custom tool policies. Models are named with a provider prefix, so swapping one provider for another needs little code change, and the same interface covers structured output and streaming. For retrieval, LangChain provides document loaders, text splitters, embedding models, vector stores and retrievers. Its documentation describes three patterns: two-step RAG, where retrieval always runs first; agentic RAG, where the agent decides when to search; and hybrid designs that add validation steps.
LangGraph is a lower-level orchestration framework and runtime for long-running, stateful agents. LangChain agents are built on it. LangSmith is a platform for tracing, debugging and evaluating agents, and it works with other frameworks too.
In our own work, we built a retrieval prototype with LangChain and a locally run model through Ollama. It sat inside a back end for a multi-provider AI chat assistant, with Qdrant as the vector store.