Ad
Skip to content

Google's Gemini API now supports file search with custom data

Google has added a File Search Tool to the Gemini API, allowing developers to query their own documents using a vector database. The tool manages storing files, splitting them up, searching for relevant content, and inserting that information into Gemini's responses. Supported file types include PDF, DOCX, TXT, and JSON. The tool is free to use, except for a small fee when indexing data ($0.15 per million tokens). Source references are included automatically in the responses.

Google says the main use cases are internal search systems and chatbots that need to answer questions based on specific company documents. Developers can find more information in the documentation or test out the demo in Google AI Studio.

AI News Without the Hype – Curated by Humans

Subscribe to THE DECODER for ad-free reading, a weekly AI newsletter, our exclusive "AI Radar" frontier report six times a year, full archive access, and access to our comment section.

Read on for the full picture.
Subscribe for hype-free coverage.

  • Access to all THE DECODER articles.
  • Read without distractions – no Google ads.
  • Access to comments and community discussions.
  • Weekly AI newsletter.
  • 6 times a year: “AI Radar” – deep dives on key AI topics.
  • Up to 25 % off on KI Pro online events.
  • Access to our full ten-year archive.
  • Get the latest AI news from The Decoder.
Subscribe to The Decoder