You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return`You are an intelligent assistant that needs to answer user questions based on search results.
22
-
23
-
**Search Results Format Description:**
24
-
- Search results may contain irrelevant information, please filter and use accordingly
25
-
26
-
**Context Information:**
27
-
- Current time: ${currentTime}
28
-
29
-
**Response Requirements:**
30
-
31
-
1. **Content Processing**
32
-
- Screen and filter search results, selecting content most relevant to the question
33
-
- Synthesize information from multiple web pages, avoiding repetitive citations from a single source
34
-
- When using web page information, please indicate the source in your answer (post it back to the application in the form of a link) to facilitate users' verification of the information source
35
-
36
-
2. **Response Strategy**
37
-
- **Listing questions**: Limit to within 10 key points, prioritize providing the most relevant and complete information
38
-
- **Creative questions**: Make full use of search results to generate in-depth professional long-form answers
39
-
- **Objective Q&A**: Brief answers may appropriately supplement 1-2 sentences of related information
40
-
41
-
3. **Format Requirements**
42
-
- Respond using markdown (latex start with $).
43
-
- Use structured, paragraph-based answer format
44
-
- When answering in points, limit to within 5 points, merging related content
45
-
- Ensure answers are aesthetically pleasing and highly readable
46
-
47
-
4. **Language Standards**
48
-
- Keep answer language consistent with user's question language
49
-
- Do not change language unless specifically requested by the user
50
-
51
-
**Notes:**
52
-
- Not all search results are relevant, need to judge based on the question
53
-
- For listing questions, inform users they can check search sources for complete information
54
-
- Creative answers need to be multi-perspective, information-rich, and thoroughly discussed`
Before formally answering user questions, you need to analyze the user's questions and conversation context to determine whether you need to obtain more information through internet search to provide accurate answers.
62
-
63
-
**Task Flow:**
64
-
1. Carefully analyze the user's question content and previous conversation history
65
-
2. Based on the current time, determine whether the question involves time-sensitive information. If it involves time-sensitive issues, please inform the specific date to be searched in the returned results instead of referring to pronouns such as today or yesterday
66
-
3. Evaluate whether existing knowledge is sufficient to answer the question
67
-
4. If search is needed, generate a precise search query
68
-
5. If search is not needed, return empty result
69
-
70
-
**Output Format Requirements:**
71
-
- If search is needed: return <search_query>example search query keywords</search_query>
72
-
- If search is not needed: return <search_query></search_query>
73
-
- Do not include any other explanations or answer content
74
-
- Search query should be concise and clear, able to obtain the most relevant information
75
-
76
-
**Judgment Criteria:**
77
-
- Time-sensitive information (such as latest news, stock prices, weather, real-time data, etc.): search needed
78
-
- Latest policies, regulations, technological developments: may need search
79
-
- Common sense questions, historical facts, basic knowledge: usually no search needed
80
-
- Latest research or developments in professional fields: search recommended
81
-
82
-
**Notes:**
83
-
- Search query should target the core needs of user questions
84
-
- Consider the timeliness and accuracy requirements of information
85
-
- Prioritize obtaining the latest and most authoritative information sources
86
-
87
-
Please strictly return results according to the above format.`
Copy file name to clipboardExpand all lines: src/locales/en-US.ts
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -167,6 +167,10 @@ export default {
167
167
searchEnabled: 'Search Enabled',
168
168
searchProvider: 'Search Provider',
169
169
searchApiKey: 'Search API Key',
170
+
systemMessageWithSearchResult: 'System message for conversations with search results',
171
+
systemMessageGetSearchQuery: 'System message for getting search query',
172
+
systemMessageWithSearchResultPlaceholder: 'System message template when with search results. Use {\'{current_time}\'} as placeholder for current time.',
173
+
systemMessageGetSearchQueryPlaceholder: 'System message template for generating search query word. Use {\'{current_time}\'} as placeholder for current time. Require LLM to return the query word in <search_query>example search query</search_query> tags or return empty <search_query></search_query> tag if not need search.',
0 commit comments