Elasticsearch
Elasticsearch is a distributed, RESTful search and analytics engine, capable of performing both vector and lexical search. It is built on top of the Apache Lucene library.
This notebook shows how to use chat message history functionality with Elasticsearch.
Set up Elasticsearch
There are two main ways to set up an Elasticsearch instance:
-
Elastic Cloud. Elastic Cloud is a managed Elasticsearch service. Sign up for a free trial.
-
Local Elasticsearch installation. Get started with Elasticsearch by running it locally. The easiest way is to use the official Elasticsearch Docker image. See the Elasticsearch Docker documentation for more information.
Install dependencies
%pip install --upgrade --quiet elasticsearch langchain langchain-community