str
): The natural language query stringOptional[List[KnowledgeSearchSourceIndex]]
): Priority order of sources to search. Search stops when results are found in first index.
KnowledgeSearchSourceIndex.TAKO
, KnowledgeSearchSourceIndex.WEB
, KnowledgeSearchSourceIndex.CONNECTED_DATA
[KnowledgeSearchSourceIndex.TAKO]
Optional[KnowledgeSearchRequestOutputSettings]
): Settings for controlling knowledge card outputsOptional[str]
): ISO3166-1 alpha-2 country code (e.g., ‘US’, ‘CA’, ‘GB’). Default: “US”KnowledgeSearchResults
object containing:
request_id
: Unique request identifieroutputs.knowledge_cards
: List of knowledge cards with:
card_id
: Unique card identifiertitle
: Card titledescription
: Detailed descriptionwebpage_url
: Interactive card URLimage_url
: Static image URLembed_url
: Embeddable iframe URLsources
: Data sources informationmethodologies
: Data collection methodologiescard_type
: Type of card (chart, table, text, etc.)str
): The ID of the knowledge cardbytes
: The image content as bytes
Optional[TakoDataFormatDataset]
): Dataset in Tako Data FormatOptional[str]
): ID of uploaded file to visualizeOptional[str]
): Query with visualization instructionsOptional[VisualizeSupportedModels]
): Model to use
o3
o4-mini
qwen-3-32b
llama-3.3-70b
qwen-3-coder-480b
qwen-3-235b-a22b-instruct-2507
qwen-3-235b-a22b-thinking-2507
Optional[KnowledgeSearchRequestOutputSettings]
): Output control settingsOptional[UserRequestedVizComponentType]
): Visualization type
bar
timeseries
pie
scatter
boxplot
choropleth
heatmap
timeline
waterfall
tako_formatted_dataset
or file_id
must be provided, but not both.
KnowledgeSearchResults
: Visualization results as knowledge cards
str
): Path to the file to uploadOptional[str]
): Context description to help Tako understand the filestr
: The file ID for use in other methods
str
): URL of the file to connect toOptional[str]
): ID of existing file to update. If not provided, creates new filedict
: Response containing:
message
: Status messageid
: File IDmetadata
: File metadata including creation/update timestampsAsyncTakoClient
with the same methods but with async
/await
:
KnowledgeSearchResults
: