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

As a THE DECODER subscriber, you get ad-free reading, our weekly AI newsletter, the exclusive "AI Radar" Frontier Report 6× per year, access to comments, and our complete archive.

AI news without the hype
Curated by humans.

  • Over 20 percent launch discount.
  • 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