v1.0 · python & typescript

Build applications on top of language models.

LangChain gives you a small set of composable pieces — prompts, models, retrievers, tools — and one interface that ties them together.

chain.py
chain = prompt | model | StrOutputParser()

chain.invoke({"topic": "vector search"})

Compose, don't glue

Prompts, models, retrievers and parsers share one interface. Pipe them together and the result behaves like every other piece.

Ground every answer

Bring your own documents, split them, embed them and hand the model only the context the question needs.

Ship with confidence

Streaming, tracing and evaluation are part of the framework, not an afterthought you bolt on before launch.

From the blog

All posts