I always start my prompts with a multi-line comment in python followed by whatever libraries I want to use. When I say ask, I technically don’t ask, I tell it what the “library” does similar to how you’d see in a codebase. I’ve often had prompts trail off into massive single line comments, not necessarily a bad thing, I’m sure that could be filtered using logprobs but I’m just starting to learn how those work. But when I “asked” codex to write code that finds the similarity between two sentences, I got several results that wrote some of the code then commented on exactly what else needs to be done and why.
I posted three responses and the prompts I used as a gist here’s the link.
Edit: fixed the link
It made me think that fine-tuning on open source repos could have given it a friendlier, more helpful tone since it would mimic the voices of comments in the repos and by extension, the open source community as a whole.