[RFC] Integrate an LLM
Hello there, it's my first issue here so let me follow my usual tradition and thank you for the work around the bundle, it makes a serious difference in the Symfony ecosystem.
Context: this issue is not a concrete idea, but I'm trying to highlight where LLM usage is a good idea and trigger discussions.
I figured out that this bundle is some kind of clever class generation around Symfony, and I was asking myself how to make it even better to make an even bigger difference!
This is how I noticed that maybe the make:unit-test or make:functional-test could be an even more powerful feature combined with an LLM capable of reading the context of the project and generate a test that:
- Follow the project conventions
- With some tests already written
Of course this would require an integration with an LLM which would be out of the scope of the project and highlight that maybe an issue should be open on Symfony side for a new component?
I'm super-curious of what you think of such feature. (I believe it's the first one about an LLM integration!)
Thanks for your attention
Hi, @Nek- I also think integrating an LLM would be worthwhile.
I've been working on a interactive tool to create Symfony 7.3 invokable commands, and was thinking about how to integrate an LLM there. In particular, the command has all the variables with a description of what they are, and a description of what the command is supposed to do. I have a second utility that injects dependencies to further hint as to what tools will be needed for the task.
https://medium.com/@tacman1123/generating-symfony-7-3-console-commands-a2b4da5d670d
I removed the body I created for the article and let ChatGPT fill it in, and it was perfect.
https://chatgpt.com/share/6836eaaf-54bc-8010-b4e5-2948da251010
Once 7.3 comes out (any day now), I'll create a new article the does something more complex, like import a CSV file, and see how well it does.
In short, yes, I think there's a lot of potential in using code generation to create the structure and letting a LLM fill in the a starting point for the detail.
Check this out: https://github.com/php-llm/llm-chain-symfony-demo
I created a detailed Symfony command to download the dummyjson.com/products, and it was pretty slick.