system_prompt
system_prompt(
data_source,
data_description=None,
extra_instructions=None,
categorical_threshold=10,
)
Create a system prompt for the chat model based on a data source’s schema and optional additional context and instructions.
Parameters
data_source |
DataSource |
A data source to generate schema information from |
required |
data_description |
str |
Optional description of the data, in plain text or Markdown format |
None |
extra_instructions |
str |
Optional additional instructions for the chat model, in plain text or Markdown format |
None |
categorical_threshold |
int |
Threshold for determining if a column is categorical based on number of unique values |
10 |
Returns
|
str |
The system prompt for the chat model. |