Class: AzureCosmosDBNoSqlVectorStore
Extends
Constructors
new AzureCosmosDBNoSqlVectorStore()
new AzureCosmosDBNoSqlVectorStore(
dbConfig
):AzureCosmosDBNoSqlVectorStore
Parameters
• dbConfig: AzureCosmosDBNoSQLConfig
& VectorStoreBaseParams
Returns
Overrides
Defined in
packages/llamaindex/src/vector-store/AzureCosmosDBNoSqlVectorStore.ts:149
Properties
cosmosClient
cosmosClient:
CosmosClient
The CosmosDB client. This is either passed in or created.
Defined in
packages/llamaindex/src/vector-store/AzureCosmosDBNoSqlVectorStore.ts:116
embedModel
embedModel:
BaseEmbedding
Inherited from
Defined in
packages/llamaindex/src/vector-store/types.ts:89
embeddingKey
embeddingKey:
string
The key to use for the vector embedding field in the CosmosDB container. Default: "embedding"
Defined in
packages/llamaindex/src/vector-store/AzureCosmosDBNoSqlVectorStore.ts:141
flatMetadata
flatMetadata:
boolean
=true
Defined in
packages/llamaindex/src/vector-store/AzureCosmosDBNoSqlVectorStore.ts:123
idKey
idKey:
string
The key to use for the id field in the CosmosDB container. Default: "id"
Defined in
packages/llamaindex/src/vector-store/AzureCosmosDBNoSqlVectorStore.ts:129
isEmbeddingQuery?
optional
isEmbeddingQuery:boolean
Inherited from
BaseVectorStore
.isEmbeddingQuery
Defined in
packages/llamaindex/src/vector-store/types.ts:91
metadataKey
metadataKey:
string
The key to use for the metadata field in the CosmosDB container. Default: "metadata"
Defined in
packages/llamaindex/src/vector-store/AzureCosmosDBNoSqlVectorStore.ts:135
storesText
storesText:
boolean
=true
Overrides
Defined in
packages/llamaindex/src/vector-store/AzureCosmosDBNoSqlVectorStore.ts:107
textKey
textKey:
string
The key to use for the text field in the CosmosDB container. Default: "text"
Defined in
packages/llamaindex/src/vector-store/AzureCosmosDBNoSqlVectorStore.ts:121
Methods
add()
add(
nodes
):Promise
<string
[]>
Adds document to the CosmosDB container.
Parameters
Returns
Promise
<string
[]>
an array of document ids which were added
Overrides
Defined in
packages/llamaindex/src/vector-store/AzureCosmosDBNoSqlVectorStore.ts:230
client()
client():
unknown
Returns
unknown
Overrides
Defined in
packages/llamaindex/src/vector-store/AzureCosmosDBNoSqlVectorStore.ts:145
delete()
delete(
refDocId
,deleteOptions
?):Promise
<void
>
Delete a document from the CosmosDB container.
Parameters
• refDocId: string
The id of the document to delete
• deleteOptions?: object
Any options to pass to the container.item.delete function
Returns
Promise
<void
>
Promise that resolves if the delete query did not throw an error.
Overrides
Defined in
packages/llamaindex/src/vector-store/AzureCosmosDBNoSqlVectorStore.ts:273
query()
query(
query
,options
?):Promise
<VectorStoreQueryResult
>
Performs a vector similarity search query in the CosmosDB container.
Parameters
• query: VectorStoreQuery
VectorStoreQuery
• options?: object
Returns
Promise
<VectorStoreQueryResult
>
List of nodes along with similarityScore
Overrides
Defined in
packages/llamaindex/src/vector-store/AzureCosmosDBNoSqlVectorStore.ts:284