Google has launched the File Search Tool within its Gemini API, enhancing document retrieval capabilities for developers. This tool integrates with documents and databases to provide contextually enriched responses, featuring citations for source verification.
Tool Features and Functionality
The File Search Tool employs the Gemini Embedding model, automating processes such as file storage, chunking, and embeddings. It performs vector searches, effectively retrieving relevant information even when specific phrases are not used. Supported file formats include PDF, DOCX, TXT, JSON, and various programming file types.
Cost and Availability
Embedding and indexing files with the File Search Tool costs $0.15 per 1 million tokens. Once the files are indexed, storage and embedding generation during queries are free. According to Google, this pricing structure offers a cost-effective and scalable solution. Developers can explore this feature further with a demo available in Google AI Studio. The File Search Tool is now accessible within the Gemini API.