博客

LangChain and Elasticsearch: Building LangGraph retrieval agent template

Elasticsearch and LangChain collaborate on a new retrieval agent template for LangGraph for agentic apps

The new LangGraph retrieval agent template is designed to simplify the development of Generative AI (GenAI) agentic applications that require agents to use Elasticsearch for agentic retrieval. This template comes pre-configured to use Elasticsearch, allowing developers to build agents with LangChain and Elasticsearch quickly.

To get started right away, access the project on Github: https://github.com/langchain-ai/retrieval-agent-template

What is LangGraph?

LangGraph helps developers build stateful, multi-actor applications with LLMs, used to create agent and multi-agent workflows. There are a few new concepts to learn, like cycles, branching, and persistence – these allow developers to implement loops, conditions, and error handling mechanisms in applications. This makes LangGraph a great choice for creating complex workflows, where agents can pause for user input or correction. For more details you can check the Intro to LangGraph course on LangChain Academy.

The new Retrieval Agent Template focuses on question-answering tasks by leveraging knowledge retrieval with Elasticsearch. Users can set up agents capable of retrieving relevant information based on natural language queries. The template provides an easy, configurable interface to Elasticsearch, making it a great starting point for developers looking to build search retrieval-based agents​.

About LangGraph’s default Elasticsearch template

Elasticsearch Vector Database Capabilities: The template leverages Elasticsearch’s Vector Storage and Search capabilities to enable more precise and relevant knowledge retrieval.

Retrieval Agent Capability: This enables an agent to use Retrieval-Augmented Generation (RAG), helping Large Language Models (LLMs) provide more accurate and context-rich answers by retrieving the most relevant information from data stored within Elasticsearch.

Integration with LangGraph Studio: With LangGraph Studio, developers can better understand and build complex agentic applications. It provides intuitive visualization and debugging tools in a user-friendly interface, making it easier to develop, optimize, and troubleshoot AI applications.

Start building with LangGraph retrieval agent template

Elastic and LangChain are excited to give developers a headstart building the next generation of intelligent, knowledge-driven AI agents using this template.

Access the retrieval agent template on GitHub, or visit Search Labs for cookbooks using Elasticsearch and LangChain. Happy searching agenting!

常见问题

What is LangGraph?

LangGraph helps developers build stateful, multi-actor applications with LLMs, used to create agent and multi-agent workflows.

相关内容

高级 RAG 技术第 2 部分:查询和测试

Han Xiang Choong

使用 Elasticsearch 解决实体问题,第 4 部分:终极挑战

Jessica Moszkowicz

在 Streams 中利用机器学习自动化日志解析

Nastia Havriushenko

利用弹性代理生成器和 GPT-OSS 构建人力资源人工智能代理

Tomás Murúa

高级 RAG 技术第 1 部分:数据处理

Han Xiang Choong

准备好打造最先进的搜索体验了吗?

足够先进的搜索不是一个人的努力就能实现的。Elasticsearch 由数据科学家、ML 操作员、工程师以及更多和您一样对搜索充满热情的人提供支持。让我们联系起来,共同打造神奇的搜索体验,让您获得想要的结果。

亲自试用