AzureAISearchEmbeddingStorageService
Wisej.AI.Services.AzureAISearchEmbeddingStorageService
Last updated
Wisej.AI.Services.AzureAISearchEmbeddingStorageService
Last updated
Namespace: Wisej.AI.Services
Assembly: Wisej.AI (3.5.0.0)
Represents a service for storing and querying embeddings using Azure AI Search.
This class provides methods to store, retrieve, and query embedded documents in a collection. It utilizes Azure AI Search for vector-based queries and document management.
Initializes a new instance of the class.
url
The base URL for the Azure AI Search service. Default is null.
: Gets or sets the API key for authenticating with the Azure AI Search service. (Default: null
)
Setting this property will reset the internal HTTP client.
Checks if a document exists in the specified collection.
collectionName
The name of the collection.
documentName
The name of the document.
Retrieves the API key for the service.
Queries the collection for documents similar to the provided query vector.
collectionName
The name of the collection.
query
The query vector.
topN
The number of top results to return.
minSimilarity
The minimum similarity threshold.
An optional filter predicate for the documents. Default is null.
Queries a specific document in the collection for similarity to the provided query vector.
collectionName
The name of the collection.
documentName
The name of the document.
query
The query vector.
topN
The number of top results to return.
minSimilarity
The minimum similarity threshold.
Throws:
Removes documents from the collection based on a filter.
collectionName
The name of the collection.
An optional filter predicate for the documents. Default is null.
Removes a specific document from the collection.
collectionName
The name of the collection.
documentName
The name of the document.
Throws:
Retrieves a specific document from the collection.
collectionName
The name of the collection.
documentName
The name of the document.
includeEmbedding
Indicates whether to include the embedding in the retrieval.
Retrieves documents from the collection based on a filter.
collectionName
The name of the collection.
includeEmbedding
Indicates whether to include the embedding in the retrieval.
An optional filter predicate for the documents. Default is null.
Stores a document in the specified collection.
collectionName
The name of the collection.
document
The document to store.
Throws:
Represents a service for storing and querying embedded documents within specified collections.
: Gets or sets the API version for the Azure AI Search service. (Default: "2024-07-01"
)
: Gets or sets the base URL for the Azure AI Search service. (Default: null
)
Returns: . A task that represents the asynchronous operation. The task result contains a boolean indicating whether the document exists.
Returns: . The API key as a string.
filter
Returns: . A task that represents the asynchronous operation. The task result contains an array of objects.
Returns: . A task that represents the asynchronous operation. The task result contains an object.
Thrown when the document is null.
filter
Returns: . A task that represents the asynchronous operation.
Returns: . A task that represents the asynchronous operation.
Thrown when the document is null.
Returns: . A task that represents the asynchronous operation. The task result contains an object.
filter
Returns: . A task that represents the asynchronous operation. The task result contains an array of objects.
Returns: . A task that represents the asynchronous operation.
Thrown when the document is null.