Knowledge Bases

Generate KB visualization plan

Changed on

Ask a model which fields of the active schema are worth charting, and how, from the schema and a sample of the extraction records.

post/api/v0/knowledge-bases/{kb_id}/viz-plan

Request

Path parameters

kb_idstring uuid required

Request body

user_hintstring

Optional guidance for the LLM when choosing visualizations.

sample_sizeinteger

Records shown to the model as examples of the data.

max_distinct_valuesinteger

A string field with at most this many distinct values is listed to the model value by value, so it can chart it and spot aliases.

max_tokensinteger

Output budget of the planning call.

reasoningstring nullable

Reasoning depth asked of the model; a depth the user saved for kb_viz_plan_model outranks it.

Response

Successful Response

summary_metric_fieldstring nullable
value_aliasesobject
rationalestring nullable
sample_sizeinteger
record_countinteger

Changes