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
Update websearch prompting & summary prompting #503
Update websearch prompting & summary prompting #503
Conversation
We should address #504 before merging this as tokens are not specified for mistral (our current task model) so things might break |
- Removed web search template - Added examples in `generateQuery` - Passed previous questions when generating the web search query - Added previous questions to the bottom of the context window in `buildPrompt` when using websearch
@mishig25 might be worth for you to have a look as I tweaked some things in the websearch. It now does better for follow up questions like
Still not 100% happy but I think it's already better than the current version. I also changed all the prompt building for summarization and web search query generation to use proper few shot examples. |
Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm !
Is this issue being addressed somewhere?
|
Yes by deprecating the default webSearchQueryPromptTemplate we get rid of the last references to specific tokens. Now we use only the |
Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
Co-authored-by: Victor Muštar <victor.mustar@gmail.com>
New prompts look good! I added a check to add an emoji if there's none at the beginning of the string. Merging this now! |
Closes #504