GoogleYingxin Jiang, Kaz SatoTutorial
From Files to Cited Answers in One API Call: Managed Ingestion and SearchDocuments in Agent Retrieval
Summary
Agent Retrieval’s managed ingestion and SearchDocuments features automate the pipeline for searching PDFs, Office files, and videos without custom parsing, chunking, or embedding code. Users create a data store, point it at files in Cloud Storage, and call SearchDocuments with a text query to get cited results. For documents, results include page numbers; for videos, results include start and end timestamps. Audio mode enables searching spoken content in videos without transcripts. In tests, 18 investor PDFs became searchable in about 9 minutes, and 19 minutes of video returned results in 0.3 to 0.5 seconds per query.
Context
Before managed ingestion, building a retrieval pipeline for PDFs, Office files, or videos required custom code for parsing, chunking, embedding, and schema management. Managed ingestion and SearchDocuments in Agent Retrieval (formerly Vector Search 2.0) automate these steps, letting developers point a data store at Cloud Storage files and search with one API call that returns page numbers or timestamps.
Approach / What changed
Create a data store with a document type (UNSTRUCTURED or VIDEO), point it at files in Cloud Storage, and call SearchDocuments with a text query to get cited results without writing an ingestion pipeline.
Takeaways
Managed ingestion parses, segments, and embeds PDF, DOCX, PPTX, XLSX, TXT, and video files from Cloud Storage without custom pipeline code.
SearchDocuments returns results with page numbers for documents and start/end timestamps for videos, enabling cited answers in one API call.
Audio mode embeds the first audio track with video frames, allowing queries to match spoken content even when the picture shows something else.
FAQ
What is the difference between page and chunk segmentation?
Page segmentation produces one segment per page, so each result corresponds to a single page. Chunk segmentation splits text into 100–500 token chunks and returns the page range each chunk spans. Both modes record page numbers for citation.
How does audio mode affect video search?
With audio mode enabled, the first audio track is embedded together with the frames, so a query matches spoken content even when the picture shows something else. With audio disabled, only the frames are embedded, so queries match what is shown.
Can reranking be used with video data stores?
Reranking is not supported on VIDEO data stores. It is only available for document (UNSTRUCTURED) data stores.
Source and freshness
- Source
- developers.googleblog.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.