langchain_community.vectorstores.alibabacloud_opensearch.AlibabaCloudOpenSearchSettings¶
class langchain_community.vectorstores.alibabacloud_opensearch.AlibabaCloudOpenSearchSettings(endpoint: str, instance_id: str, username: str, password: str, table_name: str, field_name_mapping: Dict[str, str], protocol: str = 'http', namespace: str = '', embedding_field_separator: str = ',', output_fields: Optional[List[str]] = None)[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.
username (str) : The username specified when purchasing the instance.
password (str) : The password specified when purchasing the instance，
After the instance is created, you can modify it on the console.
tablename (str): The table name specified during instance configuration.
field_name_mapping (Dict) : Using field name mapping between opensearch
vector 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 float type and separated by separator,
default is comma.’,
‘metadata_field_x’: ‘Metadata field mapping includes the mappedfield name and operator in the mapping value, separated by a comma
between the mapped field name and the operator.’,
}
protocol (str): Communication Protocol between SDK and Server, default is http.
namespace (str) : The instance data will be partitioned based on the “namespace”