Skip to content

Genie Truncation Deprecation Warning#157

Merged
aravind-segu merged 2 commits intomainfrom
aravind-segu/DeprecateGenieV2
Aug 5, 2025
Merged

Genie Truncation Deprecation Warning#157
aravind-segu merged 2 commits intomainfrom
aravind-segu/DeprecateGenieV2

Conversation

@aravind-segu
Copy link
Copy Markdown
Contributor

In this release warn users that genie auto truncation will be deprecated. In the next release only truncate data if the flag truncate_results is set to True.

@aravind-segu aravind-segu requested a review from smurching August 5, 2025 17:49
Comment thread src/databricks_ai_bridge/genie.py Outdated

if not truncate_results:
warnings.warn(
"Automatic data truncation in Genie will be deprecated in a future version. Currently your data is being truncated by default. To preserve this behavior, set truncate_results=True when initializing the Genie class.",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Automatic data truncation in Genie will be deprecated in a future version. Currently your data is being truncated by default. To preserve this behavior, set truncate_results=True when initializing the Genie class.",
"Detected large Genie output, truncating it to better fit in LLM context windows. Automatic result truncation in Genie is deprecated and will be disabled by default in a future release; we recommend truncating large Genie results in your agent code instead, if needed. To keep automatic truncation for large Genie outputs enabled, set truncate_results=True when initializing the Genie class.",

Copy link
Copy Markdown
Collaborator

@smurching smurching left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment on wording otherwise LGTM!

@aravind-segu aravind-segu merged commit c06c66a into main Aug 5, 2025
12 of 16 checks passed
@aravind-segu aravind-segu deleted the aravind-segu/DeprecateGenieV2 branch August 5, 2025 18:57
@smurching smurching changed the title Genie Deprecation Warning Genie Truncation Deprecation Warning Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants