Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an AI Prompt Generation Capability #633

Open
reid-spencer opened this issue May 21, 2024 · 0 comments
Open

Add an AI Prompt Generation Capability #633

reid-spencer opened this issue May 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@reid-spencer
Copy link
Contributor

reid-spencer commented May 21, 2024

Is your feature already requested in another issue?

No

Is your feature a defect?

No

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

Yes. We want to use GPT based code generation for message handlers. We want RIDDL to do that

Describe the solution you'd like

Fine-tuning a GPT system to understand RIDDL is a lot of work. We'll get there eventually, but in the meantime, there's a faster path to code generation. Given that we have a competent chat-oriented GPT like ChatGPT or Microsoft Copilot, it should be simple enough to have RIDDL generate GPT AI prompts that would cause it to spit out the definition of code in a choice of languages by using a lot of context in the prompts. Since DDD is nicely compartmentalized, most of the context (other bounded contexts) is irrelevant.

RIDDL's hierarchical structure allows a useful AI Prompt to be generated to serve as the context for a more precise prompt to take an action such as generating an On Clause's code or modifying the RIDDL model. This should be a class, GeneratePrompt that takes a PassesResult which provides it all the quick lookup facilities to do its job quickly.

Describe the alternatives you've considered

Fine-tuning an AI to completely grok RIDDL and understand it well enough to generate code implementations from the handler specifications.

Additional Context

None

@reid-spencer reid-spencer added the enhancement New feature or request label May 21, 2024
@reid-spencer reid-spencer moved this to Todo in riddl Jun 20, 2024
@reid-spencer reid-spencer closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in riddl Mar 4, 2025
@reid-spencer reid-spencer changed the title Add an AI Prompt Generation Pass Add an AI Prompt Generation Capability Mar 4, 2025
@reid-spencer reid-spencer reopened this Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

1 participant