TECHNOLOGY

Brave rich result types need an explicit downstream adapter

In this article
THE QUICK TAKE

Typed result containers require typed consumers; a location identifier or rich callback hint is a reference to further work, not a web-page body.

Dispatch before flattening

A search interface for a city event may receive ordinary pages, news, videos, and place information. Flattening everything into URL plus description can discard useful fields and create false assumptions about what was acquired. Dispatch each result container to a consumer that understands its type before building a shared display model.

Respect the requested result families

The Web Search reference documents result_filter and separate response containers. It also states that count applies to web results. Do not enforce that number as a universal cap across every family or assume an absent family represents an empty global search. Availability also depends on the request and enabled product options.

Treat place identifiers as temporary references

The Web Search guide describes a location discovery step followed by detail acquisition. Its location IDs are ephemeral. Keep them as short-lived retrieval references, while the application’s own record identity follows its separate persistence rules. An expiring lookup handle should not become the permanent key of a saved place collection.

Use the distinct Local POIs interface when details are required. Record the enrichment outcome separately from initial discovery. If that follow-up fails, the interface can retain the discovered candidate while showing that richer details are unavailable.

Resolve rich hints intentionally

The Web Search guide also describes enabling rich callbacks and receiving a callback_key for a supported vertical. A callback hint is not the vertical’s completed payload. Invoke and parse the appropriate detail operation only when the application needs it, preserving the vertical type rather than interpreting all returned values as generic prose.

For weather or unit conversion, preserve units and structured values through the adapter. A decorative string can be useful for display but insufficient for a later calculation. Keep required attribution associated with the particular data source when presenting enriched results.

Test partial availability

Stored examples should include web-only output, a location without successful enrichment, and a rich hint without its detail payload. The existing guides to content-part contracts and response validation help organize that boundary. Ensure one unsupported family does not erase otherwise usable results, and keep unknown types observable for a deliberate adapter update.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles