---
title: "From Files to Cited Answers in One API Call: Managed Ingestion and SearchDocuments in Agent Retrieval"
description: "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."
---

# From Files to Cited Answers in One API Call: Managed Ingestion and SearchDocuments in Agent Retrieval

[Google](https://yomu.fyi/company/google) · Yingxin Jiang, Kaz Sato · Nov 24, 2026

**Type:** Tutorial

## 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.

**Tags:** [Agent Retrieval](https://yomu.fyi/topic/agent-retrieval), [Cloud Storage](https://yomu.fyi/topic/cloud-storage), [Managed Ingestion](https://yomu.fyi/topic/managed-ingestion), [SearchDocuments](https://yomu.fyi/topic/searchdocuments)

- Source: [Google](https://developers.googleblog.com/from-files-to-cited-answers-in-one-api-call-managed-ingestion-and-searchdocuments-in-agent-retrieval)
- Source URL: https://developers.googleblog.com/from-files-to-cited-answers-in-one-api-call-managed-ingestion-and-searchdocuments-in-agent-retrieval
- Ingested by Yomu: 2026-11-25T00:00:19.325Z

[Read original post](https://developers.googleblog.com/from-files-to-cited-answers-in-one-api-call-managed-ingestion-and-searchdocuments-in-agent-retrieval)
