Skip to content

Commit 09f411d

Browse files
Google APIscopybara-github
authored andcommitted
feat: add text field for Grounding metadata support chunk output
PiperOrigin-RevId: 688271012
1 parent 76ca663 commit 09f411d

4 files changed

Lines changed: 17 additions & 11 deletions

File tree

google/cloud/aiplatform/v1/content.proto

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,9 @@ message GroundingChunk {
515515

516516
// Title of the attribution.
517517
optional string title = 2;
518+
519+
// Text of the attribution.
520+
optional string text = 3;
518521
}
519522

520523
// Chunk type.
@@ -581,11 +584,11 @@ message SearchEntryPoint {
581584

582585
// Metadata related to retrieval in the grounding flow.
583586
message RetrievalMetadata {
584-
// Optional. Score indicating how likely information from google search could
587+
// Optional. Score indicating how likely information from Google Search could
585588
// help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
586589
// least likely and 1 is the most likely. This score is only populated when
587-
// google search grounding and dynamic retrieval is enabled. It will be
588-
// compared to the threshold to determine whether to trigger google search.
590+
// Google Search grounding and dynamic retrieval is enabled. It will be
591+
// compared to the threshold to determine whether to trigger Google Search.
589592
float google_search_dynamic_retrieval_score = 2
590593
[(google.api.field_behavior) = OPTIONAL];
591594
}

google/cloud/aiplatform/v1/tool.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ message Retrieval {
133133
}
134134

135135
// Retrieve from Vertex AI Search datastore for grounding.
136-
// See https://cloud.google.com/vertex-ai-search-and-conversation
136+
// See https://cloud.google.com/products/agent-builder
137137
message VertexAISearch {
138-
// Required. Fully-qualified Vertex AI Search's datastore resource ID.
138+
// Required. Fully-qualified Vertex AI Search data store resource ID.
139139
// Format:
140140
// `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
141141
string datastore = 1 [(google.api.field_behavior) = REQUIRED];

google/cloud/aiplatform/v1beta1/content.proto

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,9 @@ message GroundingChunk {
516516

517517
// Title of the attribution.
518518
optional string title = 2;
519+
520+
// Text of the attribution.
521+
optional string text = 3;
519522
}
520523

521524
// Chunk type.
@@ -586,11 +589,11 @@ message SearchEntryPoint {
586589

587590
// Metadata related to retrieval in the grounding flow.
588591
message RetrievalMetadata {
589-
// Optional. Score indicating how likely information from google search could
590-
// help answer the prompt. The score is in the range [0, 1], where 0 is the
592+
// Optional. Score indicating how likely information from Google Search could
593+
// help answer the prompt. The score is in the range `[0, 1]`, where 0 is the
591594
// least likely and 1 is the most likely. This score is only populated when
592-
// google search grounding and dynamic retrieval is enabled. It will be
593-
// compared to the threshold to determine whether to trigger google search.
595+
// Google Search grounding and dynamic retrieval is enabled. It will be
596+
// compared to the threshold to determine whether to trigger Google Search.
594597
float google_search_dynamic_retrieval_score = 2
595598
[(google.api.field_behavior) = OPTIONAL];
596599
}

google/cloud/aiplatform/v1beta1/tool.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ message VertexRagStore {
224224
}
225225

226226
// Retrieve from Vertex AI Search datastore for grounding.
227-
// See https://cloud.google.com/vertex-ai-search-and-conversation
227+
// See https://cloud.google.com/products/agent-builder
228228
message VertexAISearch {
229-
// Required. Fully-qualified Vertex AI Search's datastore resource ID.
229+
// Required. Fully-qualified Vertex AI Search data store resource ID.
230230
// Format:
231231
// `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
232232
string datastore = 1 [(google.api.field_behavior) = REQUIRED];

0 commit comments

Comments
 (0)