Skip to content

Conversation

@jqnatividad
Copy link
Collaborator

No description provided.

already pulled in by minijinja-contrib, so we're not making the dependency tree bigger

we need this to wrap long prompts
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the describegpt command's Polars SQL processing capabilities by improving error reporting and attribution formatting. The changes focus on providing clearer error messages when SQL queries fail and better formatting of prompt information in generated SQL output.

  • Improved SQL error message formatting with clear query and error separation
  • Enhanced attribution metadata to include wrapped user prompts as properly formatted SQL comments
  • Updated Polars SQL guidance with more accurate function references and reorganized LLM instructions

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/cmd/sqlp.rs Enhanced error message formatting to display failed queries with clear separation between query text and error details
src/cmd/describegpt.rs Added textwrap support for formatting user prompts as SQL comments in attribution metadata, improved error message passing from sqlp stderr
resources/describegpt_defaults.toml Updated Polars SQL function reference URL, refined date operation guidance, reorganized LLM instruction ordering for better prompt flow
Cargo.toml Added textwrap dependency for text wrapping functionality
Cargo.lock Updated lock file with textwrap dependency

@jqnatividad jqnatividad merged commit 7458530 into master Dec 2, 2025
22 of 23 checks passed
@jqnatividad jqnatividad deleted the describegpt-better-polars-SQL branch December 2, 2025 13:01
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