Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
Google AI adds managed ingestion and search for PDFs, videos in one AP - OpenSmartRoute
Google AI adds managed ingestion and search for PDFs, videos in one API call
Google AI introduces managed ingestion and SearchDocuments features in Agent Retrieval. These allow searching PDFs, videos, and office files without custom pipelines.
Key points
SearchDocuments returns cited results with source URIs and timestamps
Import files directly from Cloud Storage with no custom code needed
Search videos by visual and spoken content in 0.3 to 0.5 seconds per query
Introduction - new managed ingestion and search features announced
Google AI has announced new features called managed ingestion and SearchDocuments. These features are now in public preview. They allow users to search PDFs, videos, and office files with just one API call. This simplifies how data is imported and searched, removing the need for custom pipelines. The update aims to make it easier to build search and retrieval systems for various file types.
Previously, setting up search involved writing complex code. Users had to parse files, split them into chunks, embed each chunk, and store them in a vector database. For videos, the process was even more complicated. It included transcoding, cutting into clips, embedding frames, and tracking timestamps. These steps required custom development and maintenance. The new features automate much of this work, saving time and effort.
What Managed Ingestion and SearchDocuments Enable - simplified data import and search
Managed ingestion and SearchDocuments work together to make data import and search easier. Users create separate data stores for different file types, such as documents or videos. Each data store points to files stored in cloud storage. Once set up, the service automatically parses, segments, and embeds files. This process replaces the manual pipeline that used to be necessary.
SearchDocuments allows users to perform searches with a single API call. It takes a data store and a text query as input. The search runs both semantic and full-text matching automatically. Results include citations that specify where the answer came from. For documents, results show page numbers; for videos, they show timestamps. This makes it easy to find and cite specific parts of files.
Creating a Data Store - setting up storage and configuration options
To use these features, users first create a data store. This is a container that holds your files and configuration settings. You specify the location of your files in cloud storage, such as Google Cloud Storage. You can point the data store at a pattern of URIs, like gs://my-bucket/reports/*.pdf, to include multiple files.
Clay is developing a system to run and select AI agents for sales and marketing. It aims to make agent use easier and more cost-effective.
You also set options for how files are parsed and segmented. There are two segmentation modes: page segmentation and chunk segmentation. Page segmentation creates one segment per page, suitable for PDFs. Chunk segmentation splits text into chunks of 100 to 500 tokens, which works well with layout parsing. You can also attach metadata to files, like document type or year, by using a JSONL manifest.
Once configured, you import files into the data store. The import process runs as a long operation. If you re-import the same files, it updates existing entries instead of duplicating them. Files that haven't changed are skipped. This setup allows for ongoing updates without manual reconfiguration.
Importing Files and Videos - supported formats and import process
Supported file formats include PDFs, Word documents, PowerPoint presentations, Excel spreadsheets, and plain text files. For videos, formats like MP4, MOV, WebM, and MKV are supported. When importing videos, the service transcodes each file into a standard format. It then splits videos into fixed-duration segments, such as 20 seconds each.
The import process for videos involves transcoding and embedding each segment. This process can take from 20 to 45 minutes for five videos, depending on their length and resolution. During import, the service creates embeddings for each segment, which are used later for search. Importing multiple data stores in parallel is possible, but each store must be imported separately.
Files and videos can be imported using URIs or a JSONL manifest. The manifest allows setting custom document IDs and attaching metadata. This flexibility helps organize and manage large collections of files. The import process is designed to be scalable and efficient, handling large datasets with minimal manual intervention.
Search Capabilities - filters, reranking, and audio-aware video search
SearchDocuments supports various search features to refine results. Users can apply filters based on metadata, such as document type or date. Filters help narrow down search results to relevant segments. Reranking can be enabled to improve the order of results. It retrieves more candidates and then reorders them based on relevance scores.
For videos, the service offers audio-aware search. By enabling audio embedding, the system can match spoken words within videos. This allows searches based on what was said, even if the visual content is unrelated. For example, a query about a speech can find the exact moment a speaker mentions a topic. This feature works without requiring transcripts or captions.
Results are returned with specific timestamps or page numbers. Multiple results can come from the same file, each with its own citation. This makes it easy to locate and cite the exact part of a file that answers a question. The combination of filters, reranking, and audio embedding provides flexible and precise search options.
Technical Details - API usage, segmentation modes, and metadata
The system uses REST APIs at version v1beta. To create a data store, you send a request with your configuration, including segmentation mode and parsing options. Segmentation modes include page segmentation, which creates one segment per page, and chunk segmentation, which splits text into smaller chunks. You can choose based on your file type and search needs.
Metadata can be attached to each file during import. Metadata fields can be used to filter search results or to return additional information with results. For example, you might include document type or publication year. Filters can then be applied to narrow searches to specific categories.
The API also supports optional features like reranking. Reranking requires enabling a specific parameter and works only for document data stores. It retrieves more candidates than needed and then orders them using a ranking API. For videos, reranking is not supported, but filters and audio embedding are available. The API design emphasizes simplicity, with a single call for search, regardless of file type.
Performance and Cost - import times, query speed, and billing considerations
Importing files and videos takes time, depending on size and complexity. For example, importing five videos of about 19 minutes each can take between 20 and 45 minutes. During this time, the service transcodes and embeds each segment. Multiple data stores can be imported in parallel, but each import runs separately.
Query response times are fast. Text searches on videos with audio embedding enabled typically return results in about 0.3 to 0.5 seconds. Document searches with reranking can take longer, especially if many candidates are retrieved. The system is designed for quick results, suitable for interactive applications.
Billing is based on the size of imported data and the number of queries. Managed ingestion itself does not incur a separate charge during the public preview. However, the backing collection used for storage and search is billed under standard Agent Retrieval pricing. Cost planning should consider import times and query volume. Deletion of data stores is straightforward and runs in the background, taking around 20 minutes in tests.
Architecture Summary - choosing between data store and collection
The main decision is whether to use a data store or a collection directly. If your data consists of files like PDFs or videos, creating a data store is usually the best option. It handles parsing, segmentation, and embedding automatically. The data store acts as a layer that prepares your files for search.
A collection is a more flexible storage option that you can query directly. It offers full control over how data is stored and retrieved. Use a collection if you need custom processing or advanced control. For most file-based data, a data store simplifies setup and maintenance.
Managed ingestion does not replace good retrieval practices. Content should be well-segmented, embedded properly, and filtered with relevant metadata. The data store automates much of this work, allowing you to focus on search quality and relevance. When building a retrieval system, consider starting with a data store for ease and scalability.
How OpenSmartRoute helps
OpenSmartRoute is an open-source request router designed for AI applications. It sends each request to the best-fit model, agent, or tool from a predefined catalog. It scores candidates based on quality, cost, speed, and safety, with adjustable weights. This helps optimize AI request handling for different needs.
Using OpenSmartRoute, teams can route requests through models that are best suited for specific tasks. It supports models served locally or from cloud providers, including open-weight options. The platform also tracks request costs and performance, helping teams manage budgets and quality. It can enforce rules to keep personal data on-premises or within regions.
Integrating OpenSmartRoute with the new managed ingestion features allows routing requests to search and retrieval systems efficiently. It can direct queries to data stores or collections based on content type, filters, or metadata. This setup ensures fast, relevant responses while controlling costs and maintaining safety. The platform learns from outcomes, adjusting traffic to models that perform well.
How it compares - what existed before, what this changes and what stays the same
Before these features, building a search system for PDFs and videos required custom code. Developers had to write pipelines to parse files, split them into chunks, embed each piece, and store them in a vector database. For videos, they needed to transcode, cut clips, embed frames, and track timestamps. This process was complex and time-consuming.
Now, the managed ingestion feature automates most of this work. You can point a data store at files in Cloud Storage. The service handles parsing, segmentation, and embedding automatically. It creates the vector collection and schema needed for search. This reduces setup time and maintenance.
SearchDocuments simplifies querying. Instead of managing multiple parameters, you send one API call with a data store and a text query. It performs hybrid search automatically, combining semantic and full-text matching. Results include citations, such as page numbers for documents or timestamps for videos. This makes it easier to get relevant, cited answers quickly.
What stays the same is the core idea of using vector search for retrieval. The underlying collections and embeddings are still used, but the process to prepare data is now automated. Developers no longer need to write custom pipelines for each file type or video format. The new features focus on ease of use and speed.
This change shifts the workload from manual pipeline creation to configuration and pointing at data in Cloud Storage. It makes it easier for teams to add large amounts of files and videos to their search systems without extensive coding. The core search capabilities remain, but the setup process is simplified.
Questions this leaves open - what the source does not say and how a reader can check it
The source does not specify the exact limits of the managed ingestion and SearchDocuments features. For example, it does not mention maximum file sizes, number of files per data store, or the total data volume supported. These limits are important for planning large-scale deployments.
It also does not detail the types of metadata that can be attached to documents and videos during import. Knowing what metadata can be used for filtering or reranking helps optimize search relevance. Readers may need to consult the API documentation or test with their own data to understand these capabilities.
The source mentions that the import process is a long-running operation but does not specify how to monitor progress or handle errors. Understanding how to track import status, retry failed imports, or resume interrupted processes is crucial for reliable operation.
Pricing details are briefly touched on, noting that search and ingestion are billed under standard Agent Retrieval costs. However, the source does not provide specific cost figures or how costs scale with data size and query volume. Readers should review the pricing documentation or run tests to estimate expenses.
The capabilities of the audio embedding feature are described as enabling search within videos based on spoken content. But the source does not clarify whether this requires enabling specific options or how accurate the speech matching is. Testing with sample videos can help evaluate this feature.
It remains unclear how well the system handles very large or complex documents, such as those with many pages, tables, or images. The segmentation modes—page and chunk—are described, but their effectiveness in different document types is not detailed. Users should experiment with their data to find optimal settings.
Finally, the source does not mention security or access controls. For example, how to restrict access to certain data stores or control who can perform searches. These are important considerations for enterprise use. Checking the API's security features and permissions settings will help ensure compliance.
To verify these points, users can consult the official API documentation, run test imports and searches, and review the API's usage limits and security features. Engaging with support channels or community forums can also provide practical insights.