Vision AI V1 API - Class Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::ConfidenceScoreIndexConfig (v0.2.0)

Reference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::ConfidenceScoreIndexConfig.

Filter on the confidence score. Only adds to index if the confidence score is higher than the threshold. Example data schema: key: "name-confidence-pair" type: CUSTOMIZED_STRUCT granularity: GRANULARITY_PARTITION_LEVEL customized_struct_config { field_schemas { key: "name" type: STRING granularity: GRANULARITY_PARTITION_LEVEL search_strategy { search_strategy_type: SMART_SEARCH confidence_score_index_config { field_path: "name-confidence-pair.score" threshold: 0.6 } } } field_schemas { key: "score" type: FLOAT granularity: GRANULARITY_PARTITION_LEVEL } } This means only "name" with score > 0.6 will be indexed.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#field_path

def field_path() -> ::String
Returns
  • (::String) — Required. The path to the confidence score field. It is a string that concatenates all the data schema keys along the path. See the example above. If the data schema contains LIST, use '_ENTRIES' to concatenate. Example data schema contains a list: "key": "list-name-score", "schemaDetails": { "type": "LIST", "granularity": "GRANULARITY_PARTITION_LEVEL", "listConfig": { "valueSchema": { "type": "CUSTOMIZED_STRUCT", "granularity": "GRANULARITY_PARTITION_LEVEL", "customizedStructConfig": { "fieldSchemas": { "name": { "type": "STRING", "granularity": "GRANULARITY_PARTITION_LEVEL", "searchStrategy": { "searchStrategyType": "SMART_SEARCH" "confidence_score_index_config": { "field_path": "list-name-score._ENTRIES.score", "threshold": "0.9", } } }, "score": { "type": "FLOAT", "granularity": "GRANULARITY_PARTITION_LEVEL", } } } } } }

#field_path=

def field_path=(value) -> ::String
Parameter
  • value (::String) — Required. The path to the confidence score field. It is a string that concatenates all the data schema keys along the path. See the example above. If the data schema contains LIST, use '_ENTRIES' to concatenate. Example data schema contains a list: "key": "list-name-score", "schemaDetails": { "type": "LIST", "granularity": "GRANULARITY_PARTITION_LEVEL", "listConfig": { "valueSchema": { "type": "CUSTOMIZED_STRUCT", "granularity": "GRANULARITY_PARTITION_LEVEL", "customizedStructConfig": { "fieldSchemas": { "name": { "type": "STRING", "granularity": "GRANULARITY_PARTITION_LEVEL", "searchStrategy": { "searchStrategyType": "SMART_SEARCH" "confidence_score_index_config": { "field_path": "list-name-score._ENTRIES.score", "threshold": "0.9", } } }, "score": { "type": "FLOAT", "granularity": "GRANULARITY_PARTITION_LEVEL", } } } } } }
Returns
  • (::String) — Required. The path to the confidence score field. It is a string that concatenates all the data schema keys along the path. See the example above. If the data schema contains LIST, use '_ENTRIES' to concatenate. Example data schema contains a list: "key": "list-name-score", "schemaDetails": { "type": "LIST", "granularity": "GRANULARITY_PARTITION_LEVEL", "listConfig": { "valueSchema": { "type": "CUSTOMIZED_STRUCT", "granularity": "GRANULARITY_PARTITION_LEVEL", "customizedStructConfig": { "fieldSchemas": { "name": { "type": "STRING", "granularity": "GRANULARITY_PARTITION_LEVEL", "searchStrategy": { "searchStrategyType": "SMART_SEARCH" "confidence_score_index_config": { "field_path": "list-name-score._ENTRIES.score", "threshold": "0.9", } } }, "score": { "type": "FLOAT", "granularity": "GRANULARITY_PARTITION_LEVEL", } } } } } }

#threshold

def threshold() -> ::Float
Returns
  • (::Float) — Required. The threshold.

#threshold=

def threshold=(value) -> ::Float
Parameter
  • value (::Float) — Required. The threshold.
Returns
  • (::Float) — Required. The threshold.