Hi,
I really like the google grounded search recent feature, I have a use case where I will benefit a lot from the grounded search confidence scores.
Yesterday(16.06.25), the same request I made today to google grounding search was returning confidence scores, but today it isn’t:
grounding support result: confidence_scores=None, grounding_chunk_indices=[0, 1] segment=Segment(end_index=189, part_index=None, start_index=82, text=‘…’)
I have not changed the model, namely “gemini-2.0-flash”. This is a sample code for reference :
from google import genai
from google.genai.types import (
Tool,
GenerateContentConfig,
GoogleSearch,
)
client = genai.Client()
model_id = “gemini-2.0-flash”
google_search_tool = Tool(
google_search = GoogleSearch()
)
response = client.models.generate_content(
model=model_id,
contents=“”“As of June 2025, summarize the BVNK Latest 20 news in press as of May and June 2025 {“summary” : “Summary of the last 20 news in the press””",
config=GenerateContentConfig(
tools=[google_search_tool],
response_modalities=[“TEXT”],
)
)
for each in response.candidates[0].content.parts:
print(each.text)
Is there some specific model or smth I should change?
I will really benefit from having the confidence scores.
Thank you in advance,
Stanka