In this article
Knowledge records and web pages can coexist, but they carry different provenance and time semantics that must survive a combined answer.
Keep the two evidence channels visible
A weather assistant may combine a forecast record with a news report about local disruption. Both are useful, but they answer different questions and may describe different periods. Preserve each channel in the evidence model before generating a combined explanation; merging every string into one undifferentiated passage loses the distinctions the user needs.
Enable and parse Knowledge explicitly
The Knowledge guide documents knowledge: "core" and records in results.knowledge alongside ordinary web results. Availability depends on the query, so the absence of that section is a normal condition to handle. A request for Knowledge does not guarantee a complete feed of every metric or every subject in a covered area.
Do not invent typed value fields
The guide defines description as prose containing a value, period, and possible history. It is not a separate numeric measurement field. If the application needs a typed number, design and validate its own extraction with units and period retained. A decimal found by a naive parser could refer to historical context rather than the requested current value.
For a forecast, keep the location, forecast period, and record date distinguishable. Do not compare it with a report’s publication date as though both timestamps describe the same event. The as_of field, when present, identifies the underlying data’s date rather than the moment your application received the response.
Preserve attribution without fabricating links
The official Python SDK explains that attribution entries credit providers rather than supplying page citations. Keep provider names and descriptions in the display. Do not manufacture a source URL by converting the provider’s name into an assumed homepage or borrowing an unrelated web result from the same response.
Join only compatible findings
The Search reference provides the web-result side of the adapter. Link a Knowledge record and page evidence only when entity, metric, location, and relevant period match the task. When they disagree, retain both observations for review instead of overwriting one channel with whichever value the model prefers.
The local guides to table units and headers and citation precision help inspect the final explanation. Validate that the response distinguishes a provider-attributed record from a cited page and preserves unknown dates or unparsed values as visible limitations.
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.