Grounding
Get a single grounded answer with a paired card and confidence score
Documentation Index
Fetch the complete documentation index at: https://docs.tako.com/llms.txt
Use this file to discover all available pages before exploring further.
Notes
- To authenticate, you’ll need a Tako API key. It’s best practice to store it as an environment variable to avoid hardcoding sensitive credentials in your code.
- Grounding always returns a prose
answerand an embeddable card together. Tako constructs the best answer it can and pairs it with a single card inknowledge_cards[0]that you can embed alongside the text. Where Knowledge Search returns one-or-more chart cards as the primary output, grounding’s primary output is the answer — and the card is always there to render with it. - Tako includes a self-rated
confidence(1–5) so you can gate on quality.
Choosing sources
source_indexes controls where the answer is grounded. It must be a non-empty subset of ["tako", "web"]:
["tako"]— answer drawn from Tako’s curated knowledge graph.["web"]— answer drawn from the live web.["tako", "web"]— Tako uses both and returns the best-supported answer.
Response shape: always a card + answer
Every successful response includes both the proseanswer and a single embeddable card in knowledge_cards. knowledge_cards[0] always has a working embed_url and image_url, so clients can render it without branching on response details.
Interpreting the response
answer— the grounded text answer.confidence— Tako’s self-rated confidence in the answer,1(low) to5(high). Use this to gate on quality. Aconfidenceof1with an emptyanswersignals a degraded response — the only case whereknowledge_cardsmay also be empty.knowledge_cards— always populated alongside a non-emptyanswer.knowledge_cards[0]is the embeddable card paired with the answer;embed_url/image_urlwork identically regardless of where the answer was drawn from.sources— citations for the answer.tako_selected— provenance hint:trueif the answer is backed by a Tako curated card,falseif it’s drawn from the live web. Useful for analytics; not required to render the response.web_results— raw web retrieval list whenwebis insource_indexes, independent of the answer above.
search_effort parameter and no async polling.Authorizations
Body
Request to the grounding endpoint. Always responds synchronously — there is no search_effort and no async polling.
The query inputs for grounding.
Source indexes to ground the answer in. Must be a non-empty subset of [tako, web]. Tako uses whichever side(s) you list and returns the best-supported answer.
1tako, web, connected_data, tako_deep_v2 ISO3166-1 alpha-2 country code (e.g., 'US', 'CA', 'GB').
Locale for the grounding request.
Settings for controlling the response shape.
Response
Grounded answer over Tako, web, or both
Response from the grounding endpoint. Narrower than KnowledgeSearchResults — purpose-built for answer-focused callers.
The grounded text answer.
Provenance hint. True if the answer is backed by a Tako curated card; false if it is drawn from the live web (or no source had an on-topic result). Useful for analytics; not required to render the response.
Tako's self-rated confidence in the answer (1=low, 5=high). Gate on this for quality. Confidence=1 with an empty answer signals a degraded response.
1 <= x <= 5Unique ID for this request.
Always populated alongside a non-empty answer. knowledge_cards[0]
is a single embeddable card paired with the answer — both embed_url
and image_url are always set so clients can render it without
branching. Empty only on degraded responses (confidence=1 with an
empty answer).
Citations for the answer.
Raw web search results when web is in source_indexes, independent of the answer above — these are the raw retrieval entries.