AWS SDK Version 4 for .NET
API Reference

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.

Represents the interface for a vector search response.

Inheritance Hierarchy

Amazon.DynamoDBv2.DocumentModel.ISearchVectors

Namespace: Amazon.DynamoDBv2.DocumentModel
Assembly: AWSSDK.DynamoDBv2.dll
Version: 3.x.y.z

Syntax

C#
public interface ISearchVectors

The ISearchVectors type exposes the following members

Properties

NameTypeDescription
Public Property IndexName System.String

Vector index name used to execute the similarity search.

Public Property Matches System.Collections.Generic.List<Amazon.DynamoDBv2.DocumentModel.DocumentSearchVectorsItem>

Match results.

Public Property Metrics Amazon.DynamoDBv2.DocumentModel.SearchVectorsMetrics

Consumed capacity metrics captured for this search operation.

Public Property ProjectionExpression Amazon.DynamoDBv2.DocumentModel.Expression

Optional projection expression that controls which attributes are returned in matches.

Public Property SearchConditionExpression Amazon.DynamoDBv2.DocumentModel.Expression

Optional filter expression applied to items during vector search.

Public Property SearchVector System.Collections.Generic.List<System.Single>

The query embedding values used for similarity matching. The vector length must match the dimensions configured for the target vector index.

Public Property TableName System.String

DynamoDB table name targeted by this vector search operation.

Public Property TopK System.Int32

The number of top results to return from the vector search. This value must be greater than 0.

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.7.2 or higher.

NameDescription
Public Method Get()

Searches the vector index and returns the top K matching documents along with their scores.

Public Method GetAsync(CancellationToken)

Asynchronously retrieves the most similar vectors from the source table based on the provided vector and similarity metric.

Version Information

.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