Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewIndexConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Configuration for vector indexing.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1FeatureViewIndexConfig

Returns a new instance of GoogleCloudAiplatformV1beta1FeatureViewIndexConfig.



9622
9623
9624
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9622

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#brute_force_configGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewIndexConfigBruteForceConfig

Configuration options for using brute force search. Corresponds to the JSON property bruteForceConfig



9584
9585
9586
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9584

def brute_force_config
  @brute_force_config
end

#crowding_columnString

Optional. Column of crowding. This column contains crowding attribute which is a constraint on a neighbor list produced by FeatureOnlineStoreService. SearchNearestEntities to diversify search results. If NearestNeighborQuery. per_crowding_attribute_neighbor_count is set to K in SearchNearestEntitiesRequest, it's guaranteed that no more than K entities of the same crowding attribute are returned in the response. Corresponds to the JSON property crowdingColumn

Returns:

  • (String)


9594
9595
9596
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9594

def crowding_column
  @crowding_column
end

#distance_measure_typeString

Optional. The distance measure used in nearest neighbor search. Corresponds to the JSON property distanceMeasureType

Returns:

  • (String)


9599
9600
9601
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9599

def distance_measure_type
  @distance_measure_type
end

#embedding_columnString

Optional. Column of embedding. This column contains the source data to create index for vector search. embedding_column must be set when using vector search. Corresponds to the JSON property embeddingColumn

Returns:

  • (String)


9605
9606
9607
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9605

def embedding_column
  @embedding_column
end

#embedding_dimensionFixnum

Optional. The number of dimensions of the input embedding. Corresponds to the JSON property embeddingDimension

Returns:

  • (Fixnum)


9610
9611
9612
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9610

def embedding_dimension
  @embedding_dimension
end

#filter_columnsArray<String>

Optional. Columns of features that're used to filter vector search results. Corresponds to the JSON property filterColumns

Returns:

  • (Array<String>)


9615
9616
9617
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9615

def filter_columns
  @filter_columns
end

#tree_ah_configGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewIndexConfigTreeAhConfig

Configuration options for the tree-AH algorithm. Corresponds to the JSON property treeAhConfig



9620
9621
9622
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9620

def tree_ah_config
  @tree_ah_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9627
9628
9629
9630
9631
9632
9633
9634
9635
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 9627

def update!(**args)
  @brute_force_config = args[:brute_force_config] if args.key?(:brute_force_config)
  @crowding_column = args[:crowding_column] if args.key?(:crowding_column)
  @distance_measure_type = args[:distance_measure_type] if args.key?(:distance_measure_type)
  @embedding_column = args[:embedding_column] if args.key?(:embedding_column)
  @embedding_dimension = args[:embedding_dimension] if args.key?(:embedding_dimension)
  @filter_columns = args[:filter_columns] if args.key?(:filter_columns)
  @tree_ah_config = args[:tree_ah_config] if args.key?(:tree_ah_config)
end