create(
cls,
*,
cosmos_client: CosmosClient,
embedding: Embeddings,
vector_embedding_policy: Dict| Name | Type | Description |
|---|---|---|
cosmos_client* | CosmosClient | Async client for azure cosmosdb no sql account. |
embedding* | Embeddings | Text embedding model to use. |
vector_embedding_policy* | Dict[str, Any] | Vector Embedding Policy for the container. |
indexing_policy* | Dict[str, Any] | |
cosmos_container_properties* | Dict[str, Any] | |
cosmos_database_properties* | Dict[str, Any] | |
full_text_policy | Optional[Dict[str, Any]] | Default: None |
vector_search_fields* | Dict[str, Any] | |
database_name | str | Default: 'vectorSearchDB' |
container_name | str | Default: 'vectorSearchContainer' |
search_type | str | Default: 'vector' |
metadata_key | str | Default: 'metadata' |
create_container | bool | Default: True |
full_text_search_enabled | bool | Default: False |
table_alias | str | Default: 'c' |
Async factory to create an AsyncAzureCosmosDBNoSqlVectorSearch.
Indexing Policy for the container.
Container Properties for the container.
Database Properties for the container.
Full Text Policy for the container.
Vector Search and Text Search Fields for the container.
Name of the database to be created.
Name of the container to be created.
CosmosDB Search Type to be performed.
Metadata key to use for data schema.
Set to true if the container does not exist.
Set to true if full text search is enabled.
Alias for the table to use in the WHERE clause.