Package learning.genai.root

Index

GroundingMetadata

Fields
citations[]

Citation

search_queries[]

string

grounding_cancelled

bool

True if grounding is cancelled, for example, no facts being retrieved.

Citation

Fields
start_index

int32

Index in the prediction output where the citation starts (inclusive). Must be >= 0 and < end_index.

end_index

int32

Index in the prediction output where the citation ends (exclusive). Must be > start_index and <= len(output).

fact_index

int32

Index of the fact supporting this claim. Should be within the range of the world_facts in the GenerateResponse.

score

double

Confidence score of this entailment. Value is [0,1] with 1 is the most confidence.