credentials = boto3.Session().get_credentials()
awsauth = AWS4Auth(region = region, service=service, refreshable_credential=credentials)
client = OpensearchVectorClient(
endpoint, idx, 4096, http_auth=awsauth, embedding_field=embedding_field, text_field=text_field, use_ssl=true, verify_certs=true,connection_class=RequestsHttpConnection, timeout=30, port=443,
)