This is a cache of https://www.elastic.co/search-labs/integrations/langchain. It is a snapshot of the page at 2024-11-23T00:20:22.573+0000.
LangChain - Search Labs

LangChain

LangChain is a popular framework for working with AI, Vectors, and embeddings. Used to simplify building a variety of AI applications.

elasticsearch can be used with LangChain in three ways:

  • Use the LangChain elasticsearchStore to store and retrieve documents from elasticsearch.
  • Use the LangChain self-query retriever, with the help of an LLM like OpenAI, to transform a user's query into a query + filter to retrieve relevant documents from elasticsearch.
  • Use the LangChain elasticsearchRetriever for the most flexible way to retrieve documents from elasticsearch.

Blogs to get started with elasticsearch and LangChain

Notebooks

LangServe Templates

LangChain Powered RAG Reference App

This reference app demonstrates how to use LangChain to power a RAG (Retrieval Augmented Generation) model. The app uses the elasticsearchStore to store and retrieve documents from elasticsearch. This is a quick way to get started with Langchain and elasticsearch.

https://github.com/elastic/elasticsearch-labs/tree/main/example-apps/chatbot-rag-app

LangChain in Elastic AI Assistants

Security AI Assistant

Ready to build state of the art search experiences?

Sufficiently advanced search isn’t achieved with the efforts of one. elasticsearch is powered by data scientists, ML ops, engineers, and many more who are just as passionate about search as your are. Let’s connect and work together to build the magical search experience that will get you the results you want.

Try it yourself