Elastic Search
Estimated reading: 1 minute
The Elasticsearch component reads and writes to an Elasticsearch instance using ElasticsearchStore.
For more information, see the following:
1. Hidden parameters
2. Search results output
3. Vector store instances
4. Elasticsearch documentation
Elasticsearch parameters
| Name | Type | Description |
|---|---|---|
| es_url | String | Input parameter. Elasticsearch server URL. |
| es_user | String | Input parameter. Username for Elasticsearch authentication. |
| es_password | SecretString | Input parameter. Password for Elasticsearch authentication. |
| index_name | String | Input parameter. Name of the Elasticsearch index. |
| strategy | String | Input parameter. Strategy for vector search, either approximate_k_nearest_neighbors or script_scoring. |
| distance_strategy | String | Input parameter. Strategy for distance calculation, either COSINE, EUCLIDEAN_DISTANCE, or DOT_PRODUCT. |
| search_query | String | Input parameter. Query string for similarity search. |
| ingest_data | Data | Input parameter. Records to load into the vector store. |
| embedding | Embeddings | Input parameter. The embedding model to use. |
| number_of_results | Integer | Input parameter. Number of search results to return. Default: 4. |