Skip to content

Create explain_llm API for LLM queries #512

@hadia206

Description

@hadia206

Add a new pydough.explain_llm() function that returns a structured description of a PyDough collection expression, designed for use in LLM-assisted text-to-PyDough pipelines.

The existing explain() API produces human-readable description which can be difficult for a model to parse programmatically.
explain_llm returns a deterministic, machine-parseable output that an LLM can use to verify whether generated PyDough code correctly answers a user's question.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions