GroundingSpec
Stay organized with collections
Save and categorize content based on your preferences.
JSON representation |
{
"includeGroundingSupports": boolean,
"filteringLevel": enum (FilteringLevel )
} |
Fields |
includeGroundingSupports |
boolean
Optional. Specifies whether to include groundingSupports in the answer. The default value is false . When this field is set to true , returned answer will have groundingScore and will contain GroundingSupports for each claim.
|
filteringLevel |
enum (FilteringLevel )
Optional. Specifies whether to enable the filtering based on grounding score and at what level.
|
FilteringLevel
Level to filter based on answer grounding.
Enums |
FILTERING_LEVEL_UNSPECIFIED |
Default is no filter |
FILTERING_LEVEL_LOW |
Filter answers based on a low threshold. |
FILTERING_LEVEL_HIGH |
Filter answers based on a high threshold. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-03 UTC.
[[["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-03 UTC."],[[["The JSON representation for grounding specification includes options to manage the inclusion of grounding supports and set the filtering level."],["`includeGroundingSupports` is an optional boolean field that, when set to `true`, includes `groundingScore` and `GroundingSupports` in the returned answer."],["`filteringLevel` allows you to specify if and how to filter based on the grounding score, with options ranging from no filtering to filtering at low or high thresholds."],["There are three levels for `filteringLevel`: `FILTERING_LEVEL_UNSPECIFIED` for no filtering, `FILTERING_LEVEL_LOW` for filtering at a low threshold, and `FILTERING_LEVEL_HIGH` for a high threshold."]]],[]]