space_type="cosinesimil",    vector_field="message_embedding",    text_field="message",    metadata_field="message_metadata",)Using AOSS (Amazon OpenSearch Service Serverless)‚Äã# This is just an example to show how to use AOSS with faiss engine and efficient_filter, you need to set proper values.service = 'aoss' # must set the service as 'aoss'region = 'us-east-2'credentials = boto3.Session(aws_access_key_id='xxxxxx',aws_secret_access_key='xxxxx').get_credentials()awsauth = AWS4Auth('xxxxx', 'xxxxxx', region,service, session_token=credentials.token)docsearch = OpenSearchVectorSearch.from_documents(    docs,    embeddings,    opensearch_url="host url",    http_auth=awsauth,    timeout = 300,    use_ssl = True,    verify_certs = True,    connection_class = RequestsHttpConnection,    index_name="test-index-using-aoss",    engine="faiss",)docs = docsearch.similarity_search(    "What is feature selection",     efficient_filter=filter,     k=200,)Using AOS (Amazon OpenSearch Service)‚Äã# This is just an example to show how to use AOS , you need to set proper values.service = 'es' # must set the service as 'es'region = 'us-east-2'credentials = boto3.Session(aws_access_key_id='xxxxxx',aws_secret_access_key='xxxxx').get_credentials()awsauth = AWS4Auth('xxxxx', 'xxxxxx', region,service, session_token=credentials.token)docsearch = OpenSearchVectorSearch.from_documents(    docs,    embeddings,    opensearch_url="host url",    http_auth=awsauth,    timeout = 300,    use_ssl = True,    verify_certs = True,    connection_class = RequestsHttpConnection,    index_name="test-index",)docs = docsearch.similarity_search(    "What is feature selection",     k=200,)PreviousNucliaDBNextPostgres EmbeddingInstallationsimilarity_search using Approximate k-NNsimilarity_search using Script Scoringsimilarity_search using Painless ScriptingMaximum marginal relevance search (MMR)Using a preexisting OpenSearch instanceUsing AOSS (Amazon OpenSearch Service Serverless)Using AOS (Amazon
OpenSearch is a scalable, flexible, and extensible open-source software suite for search, analytics, and observability applications licensed under Apache 2.0. OpenSearch is a distributed search and analytics engine based on Apache Lucene.
OpenSearch is a scalable, flexible, and extensible open-source software suite for search, analytics, and observability applications licensed under Apache 2.0. OpenSearch is a distributed search and analytics engine based on Apache Lucene. ->: space_type="cosinesimil",    vector_field="message_embedding",    text_field="message",    metadata_field="message_metadata",)Using AOSS (Amazon OpenSearch Service Serverless)‚Äã# This is just an example to show how to use AOSS with faiss engine and efficient_filter, you need to set proper values.service = 'aoss' # must set the service as 'aoss'region = 'us-east-2'credentials = boto3.Session(aws_access_key_id='xxxxxx',aws_secret_access_key='xxxxx').get_credentials()awsauth = AWS4Auth('xxxxx', 'xxxxxx', region,service, session_token=credentials.token)docsearch = OpenSearchVectorSearch.from_documents(    docs,    embeddings,    opensearch_url="host url",    http_auth=awsauth,    timeout = 300,    use_ssl = True,    verify_certs = True,    connection_class = RequestsHttpConnection,    index_name="test-index-using-aoss",    engine="faiss",)docs = docsearch.similarity_search(    "What is feature selection",     efficient_filter=filter,     k=200,)Using AOS (Amazon OpenSearch Service)‚Äã# This is just an example to show how to use AOS , you need to set proper values.service = 'es' # must set the service as 'es'region = 'us-east-2'credentials = boto3.Session(aws_access_key_id='xxxxxx',aws_secret_access_key='xxxxx').get_credentials()awsauth = AWS4Auth('xxxxx', 'xxxxxx', region,service, session_token=credentials.token)docsearch = OpenSearchVectorSearch.from_documents(    docs,    embeddings,    opensearch_url="host url",    http_auth=awsauth,    timeout = 300,    use_ssl = True,    verify_certs = True,    connection_class = RequestsHttpConnection,    index_name="test-index",)docs = docsearch.similarity_search(    "What is feature selection",     k=200,)PreviousNucliaDBNextPostgres EmbeddingInstallationsimilarity_search using Approximate k-NNsimilarity_search using Script Scoringsimilarity_search using Painless ScriptingMaximum marginal relevance search (MMR)Using a preexisting OpenSearch instanceUsing AOSS (Amazon OpenSearch Service Serverless)Using AOS (Amazon