ElasticsearchConfig (vector_stores/elasticsearch.py)

mem0 · mem0/configs/vector_stores/elasticsearch.py · python · Apache-2.0
search

Module exposing: ElasticsearchConfig

# Source: https://github.com/mem0ai/mem0 | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
from collections.abc import Callable
from typing import Any, Dict, List, Optional

from pydantic import BaseModel, ConfigDict, Field, model_validator


class ElasticsearchConfig(BaseModel):
    collection_name: str = Field("mem0", description="Name of the index")
    host: str = Field("localhost", description="Elasticsearch host")
    port: int = Field(9200, description="Elasticsearch port")
    user: Optional[str] = Field(None, description="Username for authentication")
    password: Optional[str] = Field(None, description="Password for authentication")
    cloud_id: Optional[str] = Field(None

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key