Skip to content

BAMLAdapter for formatting Ash Resources in prompt (instead of json_schema) #110

@TwistingTwists

Description

@TwistingTwists

Code of Conduct

  • I agree to follow this project's Code of Conduct

AI Policy

  • I agree to follow this project's AI Policy, or I agree that AI was not used while creating this issue.

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

recently, dspy merged a BAML adapter which is a different way of formatting the classes in python when sending them in prompt.

Current default way to do that is json_schema. Which becomes too verbose when json schema is nested.

BAML gives 5% improvement over JsonSchema approach as shown in the PR.

Image

Describe the solution you'd like

Todo: Implement BAMLAdapter as opt-in to replace json_schema formatting of ash resources.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions