4 ms·
AI programming would be really useful if it moved towards me being able to make a fixed set of statements about the software, those statements are preserved per
by andrewstuart 2y ago
AI programming would be really useful if it moved towards me being able to make a fixed set of statements about the software, those statements are preserved permanently in the source code somehow, and the AI ensures that those statements remain true.
Its frustrating to work with the AI to implement something only to realise within a few interactions that it has forgotten or lost track of something I deemed to be a key requirement.
Surely the future of software has to start to include declarative statement prompts as part of the source code.
- simonw 2y agoHave you tried building that system with prompting? You could set a convention of having comments something like this: # Requirement: function always returns an array of strings And then have a system prompt which tells the model to always obey comments like that, and to add comments like that to record important requirements provided by the user.
- gavindean90 2y agoThis is a good solution. I’ve taken the idea that maintaining the vision in my job in the LLM relationship. Reiterating key details street it’s forgotten and burning tokens tweaking things over and over towards the vision is the cost of doing business.
- ilaksh 2y agoThe first thing I built with OpenAI a few years ago was a system that had a section for a program spec on one part of the screen and a live web page area on the other part. You could edit the spec and it would then regenerate the web page. It would probably work much better now. Eventually I might add something like that as a plugin in my current framework.