4 ms·
I am speculating, I’ve only done this at a small scale and had anecdotally good results. I just put examples in the comment for the function signature. …but I
by wokwokwok 3y ago
I am speculating, I’ve only done this at a small scale and had anecdotally good results. I just put examples in the comment for the function signature.
…but I can say with complete confidence that generating code from a coherent set of c header files works better than generating “one shot” full code files just from a high level goal and a file name.
You’re basically reducing the problem space from literally anything to a subset that has an defined structure.
(It helps that #include literally maps to a flat single header in c and having comments in c headers is typical, perhaps?)
- verdverm 3y agoyes, this is the essence of prompt engineering, you provide more context and it makes the job easier. The more specific you are, the better the results, up to a point. Sometimes they will have trouble breaking out of the context or examples to create the novelty we seek.