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.

Container for the parameters to the SearchVectors operation. 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:

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.DynamoDBv2.AmazonDynamoDBRequest
      Amazon.DynamoDBv2.Model.SearchVectorsRequest

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

Syntax

C#
public class SearchVectorsRequest : AmazonDynamoDBRequest
         IAmazonWebServiceRequest

The SearchVectorsRequest type exposes the following members

Constructors

NameDescription
Public Method SearchVectorsRequest()

Properties

NameTypeDescription
Public Property ExpressionAttributeNames System.Collections.Generic.Dictionary<System.String, System.String>

Gets and sets the property ExpressionAttributeNames.

One or more substitution tokens for attribute names in an expression. Use the # character in an expression to dereference an attribute name.

Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.

Public Property ExpressionAttributeValues System.Collections.Generic.Dictionary<System.String, Amazon.DynamoDBv2.Model.AttributeValue>

Gets and sets the property ExpressionAttributeValues.

One or more values that can be substituted in an expression. Use the : character in an expression to dereference an attribute value.

Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.

Public Property IndexName System.String

Gets and sets the property IndexName.

The name of the vector index to search. The index must be in the ACTIVE state.

Public Property ProjectionExpression System.String

Gets and sets the property ProjectionExpression.

A string that identifies one or more attributes to retrieve from the index. Separate attribute names with commas. If not specified, the operation returns all attributes projected into the vector index.

Only attributes projected into the vector index can be retrieved.

Public Property ReturnConsumedCapacity Amazon.DynamoDBv2.ReturnConsumedCapacity

Gets and sets the property ReturnConsumedCapacity.

Public Property SearchConditionExpression System.String

Gets and sets the property SearchConditionExpression.

A condition expression used to filter the vector search results. The expression can reference attributes defined in the vector index search schema, including HASH and INLINE_FILTER key elements.

Only the equality operator (=) is supported for HASH attributes. Comparison and range operators are supported for INLINE_FILTER attributes. Only top-level attributes from the search schema can be referenced.

Public Property SearchVector System.Collections.Generic.List<Amazon.DynamoDBv2.Model.AttributeValue>

Gets and sets the property SearchVector.

The search vector to compare against the indexed vectors. Each element is a 32-bit IEEE-754 floating point number, provided in DynamoDB list format.

The number of dimensions must match the number of dimensions configured for the vector index.

Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.

Public Property TableName System.String

Gets and sets the property TableName.

The name or Amazon Resource Name (ARN) of the table containing the vector index.

Public Property TopK System.Nullable<System.Int32>

Gets and sets the property TopK.

The number of most similar results to return.

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