Create base prompt template for code creation with code-bison
When getting an incoming request for code creation we want to transform the incoming source and put it into a basic prompt template (specific to code bison, for the case that we might have different models in the future) to start with.
Prompts
First task is to investigate if we need different sub prompts for different code creation tasks
For example:
// Write a function to validate a UK Postalcode
const validateUKPostalCode = (postalCode) => {}
Should be doing the complete same task but might need different surrounding prompts, for example
- Comment driven we can split out just that task in the prompt to have a clear focus on just fulfilling that task (as I saw in non targetted output that sometimes also other code was created which then created confusing output)
- Function starter might need a prompt describing to fill the function with the correct code
I will test out different examples and post in threads
Edited by Tim Zallmann