Skip to content

Conversation

@jqnatividad
Copy link
Collaborator

  • made data dictionary generation "neuro-symbolic"
  • more robust Polars SQL generation
  • more configurable parameters for dictionary and tags generation
  • more verbose JSON output

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 refactors the describegpt command to use a "neuro-symbolic" approach for data dictionary generation. The core improvement separates code-based dictionary generation (statistics, enumerations, examples) from LLM-generated content (labels and descriptions), making the system more robust and configurable.

Key Changes:

  • Introduced code-based dictionary generation that parses stats/frequency CSVs and generates structured entries
  • Added configurable parameters: --num-examples and --truncate-str for controlling dictionary output
  • Implemented more verbose JSON output with metadata fields (enum_threshold, num_examples, truncate_str)

Reviewed changes

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

Show a summary per file
File Description
src/cmd/sqlp.rs Enhanced SQL comment regex to handle whitespace-prefixed comments
src/cmd/describegpt.rs Major refactor implementing neuro-symbolic dictionary generation with new parsing functions and data structures
resources/describegpt_defaults.toml Simplified dictionary prompt to only request labels/descriptions, updated Polars SQL guidance
docs/nyc311-describegpt.md Updated example output showing new dictionary format with additional metadata columns
docs/nyc311-describegpt.json Updated JSON output structure with new field format and attribution metadata

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jqnatividad jqnatividad merged commit 5d1eabe into master Dec 1, 2025
16 of 17 checks passed
@jqnatividad jqnatividad deleted the 3124-describegpt-neurosymbolic-datadictionary branch December 1, 2025 15:00
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