Class: Aws::DynamoDB::Types::VectorIndex

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb

Overview

Contains the configuration settings for a vector index, including the index name, vector attribute, dimensions, distance function, search schema, and projection.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#dimensions ⇒ Integer

The number of dimensions in each vector.

Returns:

  • (Integer)


11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 11590

class VectorIndex < Struct.new(
  :index_name,
  :vector_attribute,
  :search_schema,
  :projection,
  :dimensions,
  :distance_function)
  SENSITIVE = []
  include Aws::Structure
end

#distance_function ⇒ String

The distance function used to calculate similarity between vectors. Valid values: COSINE, EUCLIDEAN, DOT_PRODUCT.

Returns:

  • (String)


11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 11590

class VectorIndex < Struct.new(
  :index_name,
  :vector_attribute,
  :search_schema,
  :projection,
  :dimensions,
  :distance_function)
  SENSITIVE = []
  include Aws::Structure
end

#index_name ⇒ String

The name of the vector index.

Returns:

  • (String)


11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 11590

class VectorIndex < Struct.new(
  :index_name,
  :vector_attribute,
  :search_schema,
  :projection,
  :dimensions,
  :distance_function)
  SENSITIVE = []
  include Aws::Structure
end

#projection ⇒ Types::Projection

Specifies attributes that are copied (projected) from the table into the vector index.

Returns:



11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 11590

class VectorIndex < Struct.new(
  :index_name,
  :vector_attribute,
  :search_schema,
  :projection,
  :dimensions,
  :distance_function)
  SENSITIVE = []
  include Aws::Structure
end

#search_schema ⇒ Array<Types::SearchSchemaElement>

The search schema that defines partition key and inline filter attributes for the vector index.

Returns:



11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 11590

class VectorIndex < Struct.new(
  :index_name,
  :vector_attribute,
  :search_schema,
  :projection,
  :dimensions,
  :distance_function)
  SENSITIVE = []
  include Aws::Structure
end

#vector_attribute ⇒ Types::VectorAttributeDefinition

The vector attribute configuration for the index.



11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
# File 'gems/aws-sdk-dynamodb/lib/aws-sdk-dynamodb/types.rb', line 11590

class VectorIndex < Struct.new(
  :index_name,
  :vector_attribute,
  :search_schema,
  :projection,
  :dimensions,
  :distance_function)
  SENSITIVE = []
  include Aws::Structure
end