langchain.vectorstores.alibabacloud_opensearch.AlibabaCloudOpenSearchSettings¶
class langchain.vectorstores.alibabacloud_opensearch.AlibabaCloudOpenSearchSettings(endpoint: str, instance_id: str, username: str, password: str, datasource_name: str, embedding_index_name: str, field_name_mapping: Dict[str, str])[source]¶
Alibaba Cloud Opensearch client configuration.
Attribute:
endpoint (str)The endpoint of opensearch instance, You can find itfrom the console of Alibaba Cloud OpenSearch.
instance_id (str)The identify of opensearch instance, You can findit from the console of Alibaba Cloud OpenSearch.
datasource_name (str): The name of the data source specified when creating it.
username (str) : The username specified when purchasing the instance.
password (str) : The password specified when purchasing the instance.
embedding_index_name (str) :  The name of the vector attribute specified
when configuring the instance attributes.
field_name_mapping (Dict)Using field name mapping between opensearchvector store and opensearch instance configuration table field names:
{‘id’: ‘The id field name map of index document.’,
‘document’: ‘The text field name map of index document.’,
‘embedding’: ‘In the embedding field of the opensearch instance,
the values must be in float16 multivalue type and separated by commas.’,
‘metadata_field_x’: ‘Metadata field mapping includes the mapped
field name and operator in the mapping value, separated by a comma
between the mapped field name and the operator.’,
}
Attributes
field_name_mapping
endpoint
instance_id
username
password
datasource_name
embedding_index_name
Methods
__init__(endpoint, instance_id, username, ...)