elasticsearch
config:
Parameter | Description | Default Value |
---|---|---|
collection_name | The name of the index to store the vectors | mem0 |
embedding_model_dims | Dimensions of the embedding model | 1536 |
host | The host where the Elasticsearch server is running | localhost |
port | The port where the Elasticsearch server is running | 9200 |
cloud_id | Cloud ID for Elastic Cloud deployment | None |
api_key | API key for authentication | None |
user | Username for basic authentication | None |
password | Password for basic authentication | None |
verify_certs | Whether to verify SSL certificates | True |
auto_create_index | Whether to automatically create the index | True |
custom_search_query | Function returning a custom search query | None |
custom_search_query
parameter allows you to customize the search query when Memory.search
is called.
Example
query
: a query vector used in Memory.search
limit
: a number of results used in Memory.search
filters
: a dictionary of key-value pairs used in Memory.search
. You can add custom pairs for the custom search query.