This is a cache of https://www.elastic.co/search-labs/integrations/langchain. It is a snapshot of the page at 2024-11-22T00:16:20.251+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