I’m making calls to Gemini 2.5 Flash Lite model from an Android app, using Firebase AI SDK.
I add Google Search in the tool list to enable grounding. I make a request. Response includes groundingMetadata with groundingSupports and inside groundingSupports there are chunk indexes for references. But, groundingChunks list is empty. So the references are to an empty list.
It looks like the model is hallucinating references. Eg. response:
{
"groundingMetadata": {
"groundingAttribution": [],
"groundingChunks": [],
"groundingSupports": [
{
"groundingChunkIndices": [
0
],
"segment": {
"endIndex": 2062,
"partIndex": 0,
"startIndex": 1892,
"text": "However, the museum always offers a rich program of talks, family activities, and tours, so it's always worth checking their schedule upon arrival for any ongoing events."
}
},
{
"groundingChunkIndices": [
0
],
"segment": {
"endIndex": 2199,
"partIndex": 0,
"startIndex": 2091,
"text": "The British Museum is generally open from 10:00 AM to 5:00 PM, with extended hours on Fridays until 8:30 PM."
}
},
{
"groundingChunkIndices": [
0
],
"segment": {
"endIndex": 2341,
"partIndex": 0,
"startIndex": 2200,
"text": "While general admission is free, booking a timed entry slot in advance is recommended, especially during peak times, to guarantee your entry."
}
},
{
"groundingChunkIndices": [
0
],
"segment": {
"endIndex": 2690,
"partIndex": 0,
"startIndex": 2605,
"text": "The entire museum is accessible, with lifts and ramps available for wheelchair users."
}
}
],
"retrievalQueries": [],
"webSearchQueries": []
}
}