public sealed class RetrievalMetadata : IMessage<RetrievalMetadata>, IEquatable<RetrievalMetadata>, IDeepCloneable<RetrievalMetadata>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class RetrievalMetadata.
Metadata related to retrieval in the grounding flow.
public float GoogleSearchDynamicRetrievalScore { get; set; }
Optional. Score indicating how likely information from Google Search could
help answer the prompt. The score is in the range [0, 1], where 0 is the
least likely and 1 is the most likely. This score is only populated when
Google Search grounding and dynamic retrieval is enabled. It will be
compared to the threshold to determine whether to trigger Google Search.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-31 UTC."],[[["The `RetrievalMetadata` class, part of the Vertex AI v1beta1 API, provides metadata for retrieval in the grounding flow, specifically within the namespace `Google.Cloud.AIPlatform.V1Beta1`."],["This class implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and inherits from `object`, providing it with base functionalities."],["Two constructors are available for creating instances of `RetrievalMetadata`: a default constructor and one that takes another `RetrievalMetadata` object as a parameter for copying."],["The `RetrievalMetadata` class features a property called `GoogleSearchDynamicRetrievalScore`, a float that represents the likelihood that Google Search can assist in answering a prompt, within a scale of 0 to 1."],["The latest version available for the class `RetrievalMetadata` is `1.0.0-beta21`, while an older version, `1.0.0-beta20`, is also listed."]]],[]]