An example of LLM prompting for programming

A couple of weeks ago I watched a fascinating Zoom call hosted by Xu Hao, Thoughtworks's Head of Technology in China. He showed an example of how he uses ChatGPT to help him code in a self-testing style. His initial prompt primes the LLM with an implementation strategy (chain of thought prompting). His prompt also asks for an implementation plan rather than code (general knowledge prompting). Once he has the plan he uses it to refine the implementation and generate useful sections of code.

more…

https://martinfowler.com/articles/2023-chatgpt-xu-hao.html

Établi 2y | 13 avr. 2023 à 14:20:20


Connectez-vous pour ajouter un commentaire

Autres messages de ce groupe

How is GenAI different from other code generators?

How is code generation with GenAI different from more "traditional" code generators? The newest memo in Birgitta Böckeler's explorations of GenAI talks abou

18 oct. 2023 à 20:10:05 | Martin Fowler
How is GenAI different from other code generators?

How is code generation with GenAI different from more "traditional" code generators? The newest memo in Birgitta Böckeler's explorations of GenAI talks abou

19 sept. 2023 à 10:10:06 | Martin Fowler
TDD with GitHub Copilot

At Thoughtworks, we are strong practitioners of Test Driven Development (TDD). Naturally this leads to the question of how generative AI can

17 août 2023 à 20:30:07 | Martin Fowler