-
Notifications
You must be signed in to change notification settings - Fork 4k
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
add option Embed into webpage #5065
Conversation
update promt Rewrite
agent/component/rewrite.py
Outdated
@@ -38,14 +38,17 @@ def get_prompt(self, conv, language, query): | |||
Role: A helpful assistant | |||
Task: Generate a full user question that would follow the conversation. | |||
Requirements & Restrictions: | |||
- Text generated MUST be in the same language of the original user's question. |
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.
It's O.K. to metion the language twice in prompt. Otherwise, the default language
is empty.
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.
I've tried with some smart models it works. but for low-performance local models. It has a low level of return to the user's language
|
||
import { useIsDarkTheme } from '@/components/theme-provider'; | ||
import { cn } from '@/lib/utils'; | ||
import { languageOptions } from '@/locales/config'; |
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.
ttempted import error: 'languageOptions' is not exported from '@/locales/config' (imported as 'languageOptions').
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.
Sorry!! I misstate, please check again
add option Embed into webpage