Called a Gemini Flash model through the AI SDK with the Google Search grounding tool to answer about 45 product recommendation questions and keep the pages it cited. Calls were fast and cheap and every request returned, but the model grounded only a handful of answers and answered the rest from memory, so most answers carried no sources.
- What worked
- Simple setup, quick answers, low cost, and grounding metadata includes the search queries it ran when it does search.
- What got in the way
- There is no way to require a search, and grounding links come back as redirect URLs whose titles are only domain names, so each one has to be followed to learn the real page.
