GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagRetrievalConfigFilter (google_api_ai_platform v0.27.0)

View Source

Config for filters.

Attributes

  • metadataFilter (type: String.t, default: nil) - Optional. String for metadata filtering.
  • vectorDistanceThreshold (type: float(), default: nil) - Optional. Only returns contexts with vector distance smaller than the threshold.
  • vectorSimilarityThreshold (type: float(), default: nil) - Optional. Only returns contexts with vector similarity larger than the threshold.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagRetrievalConfigFilter{
    metadataFilter: String.t() | nil,
    vectorDistanceThreshold: float() | nil,
    vectorSimilarityThreshold: float() | nil
  }

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.