ResearchScamNearestNeighbors

GoogleApi.ContentWarehouse.V1.Model.ResearchScamNearestNeighbors


Table of Contents ▼

Jump to a specific part of the page:

Description

All nearest neighbors for one data point. Last tag used: 5

Attributes List

This module has the following attributes (case-insensitive ascending order):

View Attributes

Attributes

  1. docid (type: String.t, default: nil)
    - Data point for which we computed nearest neighbors. This field is set based on the data_id_str field in the QueryRequest GFV (or SSTable key if data_id_str is not present), and thus can be arbitrary data, e.g. docid, URL, query string.
  2. metadata (type: String.t, default: nil)
    - Metadata about the query. This field is populated if and only if: 1) ScaM is running in offline query-database or online mode and; 2) The metadata is directly fetched from the userinfo field inside GFV and; 3) MetadataConfig.userinfo.set_user_info_for_query is set to true. The field name is kept as "metadata" for consistency with neighbors.
  3. neighbor (type: list(GoogleApi.ContentWarehouse.V1.Model.ResearchScamNearestNeighborsNeighbor), default: nil)
    - All its neighbors.
  4. neighborSelectionOverride (type: GoogleApi.ContentWarehouse.V1.Model.ResearchScamNeighborSelectionOverride, default: nil)
    - Propagate neighbor selection override information during offline search.
  5. query (type: GoogleApi.ContentWarehouse.V1.Model.ResearchScamGenericFeatureVector, default: nil)
    - The query vector for which we computed nearest neighbors.
  6. retrievedVersion (type: String.t, default: nil)
    - The version ID of the server that responded to this query, if one was specified. This field is not populated for offline (i.e. Flume rather than RPC) search.

Type

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.ResearchScamNearestNeighbors{
docid: String.t() | nil,
metadata: String.t() | nil,
neighbor: [ GoogleApi.ContentWarehouse.V1.Model.ResearchScamNearestNeighborsNeighbor.t() ] | nil,
neighborSelectionOverride: GoogleApi.ContentWarehouse.V1.Model.ResearchScamNeighborSelectionOverride.t() | nil,
query: GoogleApi.ContentWarehouse.V1.Model.ResearchScamGenericFeatureVector.t() | nil,
retrievedVersion: String.t() | nil
}

Function

@spec decode(struct(), keyword()) :: struct()

Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.ResearchScamNearestNeighbors