Nils Durner's Blog Ahas, Breadcrumbs, Coding Epiphanies

Staged conversation

Peter Gostev elaborates on LinkedIn about how Google Bard includes 5 hidden chat messages at the beginning of each conversation “to get in the mood”.

I found this technique helpful with GPT-4 as well, and have included a small helper tool in my OAI chat for this. My comment on LinkedIn:

This can be seen as an example of few-shot prompting. I think it was a presentation by Karina Nguyen that rang the bell for me and I’ve implemented support for this in my chat interfaces for Claude[0] and OpenAI GPTs[1]: you can export and import chat sessions to JSON. The idea is that you would perhaps stage an argument with the LLM, like the “nursing” that used to be required for GPT to output complete code, and re-use this to kickstart subsequent chat sessions.

[0] https://huggingface.co/spaces/ndurner/amz_bedrock_chat [1] https://huggingface.co/spaces/ndurner/oai_chat