microsoft / genaiscript

Generative AI Scripting
https://microsoft.github.io/genaiscript/
MIT License
81 stars 22 forks source link

System prompt for "verbose" output #562

Closed bzorn closed 3 days ago

bzorn commented 6 days ago

Sometimes you want the model to explain its output with greater clarity. Have a special "explain" system prompt for that. Maybe also add a --verbose option to the command line version that inserts this for debugging purposes.

Also, in the "explain" prompt, ask the model to quote from the input to make its explanations concrete.

pelikhan commented 4 days ago

So you could use env.vars.explain and set that flag in the cli

if (env.vars.explain)
  $`Explain your reasoning`

then

genaiscript ... --vars explain=true
bzorn commented 3 days ago

Sounds like a good approach. Closing since it is easy for users to implement on their own.

pelikhan commented 3 days ago

Let's add a doc page on this