Field notes

Agent Retrieval can replace your RAG pipeline. Ask about residency first

, Haystack4 min read

Google's managed ingestion and SearchDocuments handle chunking, embedding, reranking and citations. Before a Swiss deployment, check region, citation quality, evals and lock-in.

Image from Google Developers blog: From Files to Cited Answers in One API Call: Managed Ingestion and SearchDocuments in Agent Retrieval
Image: Google Developers blog (opens in a new tab)

On Nov. 24, Google published a how-to for two Public Preview features in Agent Retrieval, the product formerly called Vector Search 2.0. They are called managed ingestion and SearchDocuments. The Google Developers Blog post promises that files in Cloud Storage become cited answers through one API. If you have spent a sprint tuning chunk sizes for a customer, this is aimed at you.

This is a vendor announcement. The timings and quality results below come from Google's own tests on public Alphabet investor PDFs and five sample videos. The other numbers are product settings and preview limits. I would treat each test result as a claim to check against the customer's documents.

What the service takes over

You point a data store at a bucket. The service parses the files, splits them into segments and embeds them with Gemini Embedding 2. It also manages the vector Collection and its schema. It accepts PDF, DOCX, PPTX, XLSX and TXT, and video goes into a separate VIDEO data store. Here is what it does:

  • Chunks are 100 to 500 tokens by default, with layout parsing that detects tables and headings. Page mode makes one segment per page.
  • Hybrid retrieval: it runs semantic and full-text search and merges the results automatically.
  • Metadata filters use a document_metadata_schema for each data store, plus document_ids and page ranges.
  • Reranking uses the Ranking API with semantic-ranker-fast@latest.
  • Each result comes with gcsUri, contentSnippet, a pageRange for documents, and startOffset/endOffset for video.

If you re-import, existing documents are updated instead of duplicated, and unchanged files are skipped. A search call looks like this:

POST .../v1beta/projects/PROJECT_ID/locations/LOCATION/dataStores/DATA_STORE_ID/documents:search
{
  "text_query": {"text": "How many employees does Alphabet have?"},
  "top_k": 5,
  "ranking_spec": {"reranking_spec": {"enabled": true}}
}

In Google's example, plain hybrid search put two irrelevant balance-sheet pages in the top 5 for that query. With reranking turned on, every top result reported headcount.

Video is split into fixed windows (30s by default). Setting audio_mode to ENABLED embeds the first audio track together with the frames, with no transcript needed. Query latency was 0.3 to 0.5 s on about 19 minutes of video. Reranking does not work on video stores.

Residency comes before quality

During Public Preview, the only regions are us-east4 and europe-west4. The post does not mention a Swiss region. It also does not say whether parsing, the Gemini Embedding 2 calls or the Ranking API stay inside the chosen region.

For a customer with FINMA obligations or strict data classification rules, that gap can end the project before anyone looks at recall. I would get a written answer, including the list of subprocessors, before uploading a single real document. Security review will also look at the roles/vectorsearch.serviceAgent grant, because it gives Google's service agent read access to the customer's buckets.

Do the citations hold up?

A pageRange tells you which pages a result came from. It does not tell you whether the cited text supports the answer. In chunk mode, a chunk that spans two pages gives a range, not the exact page. The post only mentions digital_parsing_config and layout parsing, so scanned contracts and OCR quality are open questions. Video timestamps are only as precise as the window size.

Evals against the old pipeline

The announcement offers no comparison tooling, so you build the test yourself:

  • Collect real queries, written in German, French and Italian, each labelled with the document and page that answers it.
  • Run both pipelines on the same set. Compare at document and page level, because the two pipelines split documents differently.
  • Track latency, empty results and permission failures.
  • Re-run the set on a schedule. The reranker model is named semantic-ranker-fast@latest, which I read as a sign it can change underneath you, and the post does not say whether you can pin a version.

Lock-in and the bill

You can query the backing Collection directly, which gives you some control back. The post says nothing about exporting segments or embeddings. My inference is that the vectors are tied to Gemini Embedding 2, so leaving later would likely mean parsing and embedding everything again.

Managed ingestion has no separate charge during the preview, and its billing starts at GA. The backing Collection is already billed under standard Agent Retrieval pricing in the meantime. The post does not mention an SLA, quotas or file-size limits. The API is REST only for now, and the Python SDK is only "planned". Each data store runs one import at a time. To delete a store you need force=true and backing_collection_deleted=true, and deletion took about 20 minutes in Google's tests.

On Monday, I would keep the existing pipeline in production. I would send the residency question in writing and set up a europe-west4 store with a non-sensitive part of the corpus. Then I would run the labelled set through both pipelines and check which one cites the right page.

Sources

  1. 1From Files to Cited Answers in One API Call: Managed Ingestion and SearchDocuments in Agent Retrieval (opens in a new tab), Google Developers blog

Hiring forward deployed engineers

Hiring an FDE?

We run FDE searches in Switzerland

One role at a time, with a scorecard agreed up front and a written note on every candidate on the shortlist.

More field notes

All field notes