riddl icon indicating copy to clipboard operation
riddl copied to clipboard

Add an AI Prompt Generation Pass

Open reid-spencer opened this issue 9 months ago • 0 comments

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.

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 avatar May 21 '24 23:05 reid-spencer