-
Notifications
You must be signed in to change notification settings - Fork 2.8k
perf: Prompt word alignment issue(#2537) #2690
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,9 +73,9 @@ export default { | |
| referencesTooltip: | ||
| 'By adjusting the content of the prompt, you can guide the direction of the large model chat. This prompt will be fixed at the beginning of the context. Variables used: {data} carries known information from the knowledge; {question} is the question posed by the user.', | ||
| defaultPrompt: `Known information: {data} | ||
| Question: {question} | ||
| Response requirements: | ||
| - Please use concise and professional language to answer the user's question. | ||
| Question: {question} | ||
| Response requirements: | ||
| - Please use concise and professional language to answer the user's question. | ||
| ` | ||
| }, | ||
| historyRecord: { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The code looks mostly clean and well-structured. Here are some minor observations:
Overall, the function seems to achieve its intended purpose effectively, but these are just points that might want further attention based on how it will be used and maintained long-term. |
||
|
|
||
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.
The provided code looks mostly clean. However, here's a suggestion for improvement:
This approach provides more flexibility and clarity about how your slots should behave across different templates. If you have a specific implementation in mind when dealing with custom slots, let me know!