Add an opt-in native schema-enforcement mode to LLMStructuredColumnConfig

Open
#1,125 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
18/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
ai, data

Research direction

This is a design proposal, so start by reading the existing LLMStructuredColumnConfig and LLMTextColumnConfig definitions, plus how inference_parameters.extra_body is passed to the model call. Settle how the native request schema is derived from a Pydantic model or JSON Schema, and how unsupported configurations are reported. Done means an agreed design with maintainers, not a patch.

Written by the indexing model from the issue text.

Description

enhancement
Priority Level

Medium (Nice to have)

Is your feature request related to a problem? Please describe.

Native schema enforcement is possible today using LLMTextColumnConfig, provider-specific parameters in inference_parameters.extra_body, and explicit JSON deserialization and validation.
However, users who already define a Pydantic model or JSON Schema in LLMStructuredColumnConfig must switch column types and manually wire the schema into the request to use that capability.

Describe the solution you'd like

Add an optional mode to LLMStructuredColumnConfig that:

  • Derives the native request schema from the existing column schema.
  • Sends it through the appropriate provider interface.
  • Uses formatting instructions consistent with native JSON output.
  • Retains local validation and the existing parsed-object output.
  • Preserves current behavior by default.
  • Reports unsupported configurations clearly rather than silently downgrading.
    Endpoint/model support should remain the user’s responsibility, with documented requirements and limitations.
Describe alternatives you've considered

The text-column-plus-extra_body workaround described above, followed by an expression/custom column for parsing and validation. This works, but duplicates wiring that the structured column could handle.

Agent Investigation

No response

Additional context

Anonymizer’s validator and augmenter use custom columns with direct model-facade calls. Those calls can already supply native schema parameters, so this feature is not a prerequisite for Anonymizer’s integration. Its benefit is making native enforcement straightforward for users of DataDesigner’s standard structured columns.

Checklist
  • I've reviewed existing issues and the documentation
  • This is a design proposal, not a "please build this" request
Dominant language
Python
Stars
2.4k
Forks
258
Avg merge
4d 20m
Merged PRs (30d)
32

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NVIDIA-NeMo/DataDesigner

All issues in NVIDIA-NeMo/DataDesigner

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.