Skip to main content
Elasticsearch is a distributed, RESTful search and analytics engine. 它提供 a distributed, multi-tenant-capable full-text search engine with an HTTP web interface and schema-free JSON documents.

安装和设置

Setup Elasticsearch

There are two ways to get started with Elasticsearch:

Install Elasticsearch on your local machine

The easiest way to run Elasticsearch locally for development and testing is 使用 start-local script. This script sets up Elasticsearch using Docker with a simple one-line command.
This creates an elastic-start-local folder. To start Elasticsearch:
Elasticsearch will be available at http://localhost:9200. The password for the elastic user and API key are automatically generated and stored in the .env file in the elastic-start-local folder. If you only need Elasticsearch without Kibana, you can use the --esonly option:
The start-local setup is for local testing only and should not be used in production. For production installations, refer to the official Elasticsearch documentation.

Deploy Elasticsearch on elastic cloud

Elastic Cloud is a managed Elasticsearch service. Signup for a free trial.

Install client

向量嵌入模型

查看使用示例.

向量存储

查看使用示例.

Third-party integrations

EcloudESVectorStore

检索器

ElasticsearchRetriever

The ElasticsearchRetriever enables flexible access to all Elasticsearch features through the Query DSL. 查看使用示例.

BM25

查看使用示例.

LLM cache

Byte store

查看使用示例.

It is a chain for interacting with Elasticsearch Database.