AI ShortsOpen the app
Try today ยท

Search your PDFs and videos with Google Agent Retrieval

Google added a feature that lets developers search their own PDFs and videos with AI. Point it at files stored in Google Cloud, and one request returns answers with the exact page number or video timestamp they came from. It's in public preview, so it may still change.

Google's Agent Retrieval, formerly Vector Search 2.0, got two new features on November 24, both in public preview.

Managed ingestion builds the pipeline for you. You point a data store at files in Cloud Storage, and the service reads, splits and embeds them with Gemini Embedding 2. SearchDocuments then searches the store with one API call and returns matching passages with page numbers for documents or timestamps for videos.

The article reports that 18 Alphabet investor PDFs became searchable in about 9 minutes, and 19 minutes of video became searchable by visuals and speech, with queries returning in 0.3 to 0.5 seconds.

Supported documents are PDF, DOCX, PPTX, XLSX and TXT. Videos include MP4, MOV, WebM and MKV. Files must be in Cloud Storage.

During preview there's no separate charge for managed ingestion, and billing starts at general availability. The backing collection is billed at standard Agent Retrieval prices.

New to this? The key idea

Search over files works by turning each chunk of text, page or video clip into a list of numbers that captures its meaning, called an embedding. A question is turned into numbers the same way, and the closest matches win, like finding books by topic instead of exact words. Keeping page numbers or timestamps with each chunk is what lets answers point back to the exact source.

Use it at work

Use it for: developers building document or video search and question answering over company files, and teams that need answers with citations to a page or time.

Try it: the flow is create a data store, import files from Cloud Storage, then search. Grant roles/vectorsearch.serviceAgent to the Agent Retrieval service agent so it can read your files. Search call from the article:

response = session.post(
    f"{PARENT}/dataStores/investor-reports/documents:search",
    json={
        "text_query": {"text": "How much did Google Cloud revenue grow?"},
        "top_k": 5,
    },
).json()

Before you roll it out: it is in public preview, works only in us-east4 or europe-west4, and uses the v1beta REST API. Python SDK support is planned. Files must be in Cloud Storage, so your files are processed by Google. Managed ingestion has no separate charge during preview and billing starts at general availability. The backing collection is billed at standard Agent Retrieval prices. Reranking can be turned on with a ranking_spec, but it is not supported for video stores. Run one import at a time per data store. Video imports of five clips took 20 to 45 minutes in the authors' tests.

Summaries are written by AI from the linked source. Always check the original.

Get AI Shorts by email

Every morning, the day's stories in one short email. Unsubscribe in one tap.