Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System prompt for "verbose" output #562

Closed
bzorn opened this issue Jun 28, 2024 · 3 comments
Closed

System prompt for "verbose" output #562

bzorn opened this issue Jun 28, 2024 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed

Comments

@bzorn
Copy link
Collaborator

bzorn commented Jun 28, 2024

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.

@bzorn bzorn added the enhancement New feature or request label Jun 28, 2024
@pelikhan
Copy link
Member

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

@pelikhan pelikhan added the help wanted Extra attention is needed label Jun 30, 2024
@bzorn
Copy link
Collaborator Author

bzorn commented Jul 1, 2024

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

@bzorn bzorn closed this as completed Jul 1, 2024
@pelikhan pelikhan reopened this Jul 1, 2024
@pelikhan pelikhan added the documentation Improvements or additions to documentation label Jul 1, 2024
@pelikhan
Copy link
Member

pelikhan commented Jul 1, 2024

Let's add a doc page on this

pelikhan added a commit that referenced this issue Jul 2, 2024
@pelikhan pelikhan closed this as completed Jul 2, 2024
pelikhan added a commit that referenced this issue Jul 2, 2024
* towards ts support

* adding import

* imports of .mts files

* more typescript work

* only generation tsconfig whe  needed

* docs

* fix for #562

* use urls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants