specified during instance configuration.",    embedding_field_separator="Delimiter specified for writing vector field data, default is comma.",    output_fields="Specify the field list returned when invoking OpenSearch, by default it is the value list of the field mapping field.",    field_name_mapping={        "id": "id",  # The id field name mapping of index document.        "document": "document",  # The text field name mapping of index document.        "embedding": "embedding",  # The embedding field name mapping of index document.        "name_of_the_metadata_specified_during_search": "opensearch_metadata_field_name,=",        # The metadata field name mapping of index document, could specify multiple, The value field contains mapping name and operator, the operator would be used when executing metadata filter query,        # Currently supported logical operators are: > (greater than), < (less than), = (equal to), <= (less than or equal to), >= (greater than or equal to), != (not equal to).        # Refer to this link: https://help.aliyun.com/zh/open-search/vector-search-edition/filter-expression    },)# for example# settings = AlibabaCloudOpenSearchSettings(#     endpoint='ha-cn-5yd3fhdm102.public.ha.aliyuncs.com',#     instance_id='ha-cn-5yd3fhdm102',#     username='instance user name',#     password='instance password',#     table_name='test_table',#     field_name_mapping={#         "id": "id",#         "document": "document",#         "embedding": "embedding",#         "string_field": "string_filed,=",#         "int_field": "int_filed,=",#         "float_field": "float_field,=",#         "double_field": "double_field,="##     },# )Create an opensearch access instance by settings.# Create an opensearch instance and index docs.opensearch = AlibabaCloudOpenSearch.from_texts(    texts=docs, embedding=embeddings, config=settings)or# Create an opensearch instance.opensearch = AlibabaCloudOpenSearch(embedding=embeddings, config=settings)Add texts and build
Alibaba Cloud Opensearch is a one-stop platform to develop intelligent search services. OpenSearch was built on the large-scale distributed search engine developed by Alibaba. OpenSearch serves more than 500 business cases in Alibaba Group and thousands of Alibaba Cloud customers. OpenSearch helps develop search services in different search scenarios, including e-commerce, O2O, multimedia, the content industry, communities and forums, and big data query in enterprises.
Alibaba Cloud Opensearch is a one-stop platform to develop intelligent search services. OpenSearch was built on the large-scale distributed search engine developed by Alibaba. OpenSearch serves more than 500 business cases in Alibaba Group and thousands of Alibaba Cloud customers. OpenSearch helps develop search services in different search scenarios, including e-commerce, O2O, multimedia, the content industry, communities and forums, and big data query in enterprises. ->: specified during instance configuration.",    embedding_field_separator="Delimiter specified for writing vector field data, default is comma.",    output_fields="Specify the field list returned when invoking OpenSearch, by default it is the value list of the field mapping field.",    field_name_mapping={        "id": "id",  # The id field name mapping of index document.        "document": "document",  # The text field name mapping of index document.        "embedding": "embedding",  # The embedding field name mapping of index document.        "name_of_the_metadata_specified_during_search": "opensearch_metadata_field_name,=",        # The metadata field name mapping of index document, could specify multiple, The value field contains mapping name and operator, the operator would be used when executing metadata filter query,        # Currently supported logical operators are: > (greater than), < (less than), = (equal to), <= (less than or equal to), >= (greater than or equal to), != (not equal to).        # Refer to this link: https://help.aliyun.com/zh/open-search/vector-search-edition/filter-expression    },)# for example# settings = AlibabaCloudOpenSearchSettings(#     endpoint='ha-cn-5yd3fhdm102.public.ha.aliyuncs.com',#     instance_id='ha-cn-5yd3fhdm102',#     username='instance user name',#     password='instance password',#     table_name='test_table',#     field_name_mapping={#         "id": "id",#         "document": "document",#         "embedding": "embedding",#         "string_field": "string_filed,=",#         "int_field": "int_filed,=",#         "float_field": "float_field,=",#         "double_field": "double_field,="##     },# )Create an opensearch access instance by settings.# Create an opensearch instance and index docs.opensearch = AlibabaCloudOpenSearch.from_texts(    texts=docs, embedding=embeddings, config=settings)or# Create an opensearch instance.opensearch = AlibabaCloudOpenSearch(embedding=embeddings, config=settings)Add texts and build