ManticoreSearchSettings#

class langchain_community.vectorstores.manticore_search.ManticoreSearchSettings[source]#

Bases: BaseSettings

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

param column_map: Dict[str, str] = {'document': 'document', 'embedding': 'embedding', 'id': 'id', 'metadata': 'metadata', 'uuid': 'uuid'}#
param hnsw_ef_construction: int = 100#
param hnsw_m: int = 16#
param hnsw_similarity: str = 'L2'#
param host: str = 'localhost'#
param knn_dims: int | None = None#
param knn_type: str = 'hnsw'#
param password: str | None = None#
param port: int = 9308#
param proto: str = 'http'#
param table: str = 'langchain'#
param username: str | None = None#
get_connection_string() str[source]#
Return type:

str

classmethod settings_customise_sources(settings_cls: type[BaseSettings], init_settings: PydanticBaseSettingsSource, env_settings: PydanticBaseSettingsSource, dotenv_settings: PydanticBaseSettingsSource, file_secret_settings: PydanticBaseSettingsSource) tuple[PydanticBaseSettingsSource, ...]#

Define the sources and their order for loading the settings values.

Parameters:
  • settings_cls (type[BaseSettings]) – The Settings class.

  • init_settings (PydanticBaseSettingsSource) – The InitSettingsSource instance.

  • env_settings (PydanticBaseSettingsSource) – The EnvSettingsSource instance.

  • dotenv_settings (PydanticBaseSettingsSource) – The DotEnvSettingsSource instance.

  • file_secret_settings (PydanticBaseSettingsSource) – The SecretsSettingsSource instance.

Returns:

A tuple containing the sources and their order for loading the settings values.

Return type:

tuple[PydanticBaseSettingsSource, …]

Examples using ManticoreSearchSettings