AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Performs a vector similarity search on a vector index associated with an Amazon DynamoDB table, and returns the most similar items sorted by similarity score based on the distance function configured for the index.
Score interpretation depends on the distance function:
COSINE - Returns the items with the k smallest scores. Scores range
from 0 (identical) to 2 (opposite). Lower scores indicate higher similarity.
EUCLIDEAN - Returns the items with the k smallest scores. Scores represent
the Euclidean distance between vectors. Lower scores indicate higher similarity.
DOT_PRODUCT - Returns the items with the k highest scores. Higher scores
indicate higher similarity.
This is an asynchronous operation using the standard naming convention for .NET 4.7.2 or higher.
Namespace: Amazon.DynamoDBv2
Assembly: AWSSDK.DynamoDBv2.dll
Version: 3.x.y.z
public abstract Task<SearchVectorsResponse> SearchVectorsAsync( SearchVectorsRequest request, CancellationToken cancellationToken )
Container for the necessary parameters to execute the SearchVectors service method.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
| Exception | Condition |
|---|---|
| InternalServerErrorException | An error occurred on the server side. |
| RequestLimitExceededException | Throughput exceeds the current throughput quota for your account. For detailed information about why the request was throttled and the ARN of the impacted resource, find the ThrottlingReason field in the returned exception. Contact Amazon Web Services Support to request a quota increase. |
| ResourceNotFoundException | The operation tried to access a nonexistent table or index. The resource might not be specified correctly, or its status might not be ACTIVE. |
| ThrottlingException | The request was denied due to request throttling. For detailed information about why the request was throttled and the ARN of the impacted resource, find the ThrottlingReason field in the returned exception. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.7.2 and newer