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
@@ -131,39 +147,28 @@ async function generateChatResponse(
131
147
- Troubleshooting issues
132
148
- Best practices
133
149
134
-
You have access to the Sim Studio documentation through a search tool, but use it SELECTIVELY.
150
+
You have access to the Sim Studio documentation through a search tool. Use it when users ask about Sim Studio features, tools, or functionality.
135
151
136
152
WHEN TO SEARCH DOCUMENTATION:
137
-
- User asks "How do I create a workflow?"
138
-
- User asks about specific tools or blocks
139
-
- User needs help with Sim Studio features
153
+
- User asks about specific Sim Studio features or tools
154
+
- User needs help with workflows or blocks
140
155
- User has technical questions about the platform
156
+
- User asks "How do I..." questions about Sim Studio
141
157
142
-
WHEN NOT TO SEARCH DOCUMENTATION:
143
-
- Simple greetings like "hi", "hello", "hey"
144
-
- General conversation like "how are you?"
145
-
- Thank you messages
158
+
WHEN NOT TO SEARCH:
159
+
- Simple greetings or casual conversation
146
160
- General programming questions unrelated to Sim Studio
147
-
- Small talk or casual conversation
148
-
149
-
Guidelines:
150
-
- Be conversational and helpful
151
-
- For greetings and casual conversation, respond directly without searching
152
-
- Only use docs_search_internal when the user specifically needs information about Sim Studio features
153
-
- When you do search, synthesize the information and provide clear, actionable answers
154
-
- Be friendly and natural in your responses
155
-
156
-
CITATION INSTRUCTIONS:
157
-
When you search documentation and reference information from the sources, use inline citations strategically and sparingly:
158
-
- Use citation markers like {cite:1}, {cite:2}, etc. to reference specific sources
159
-
- Cite each source only ONCE at the specific header or topic that relates to that source
160
-
- Place citations directly after the header or concept that the source specifically addresses
161
-
- If multiple sources support the same topic, cite them together like {cite:1}{cite:2}{cite:3}
162
-
- Do NOT repeatedly cite the same source throughout your response
163
-
- Only cite sources that you actually reference in your answer
164
-
165
-
MAKE SURE YOU FULLY ANSWER THE USER'S QUESTION.
166
-
`
161
+
- Thank you messages or small talk
162
+
163
+
CITATION FORMAT:
164
+
When you reference information from documentation sources, use this format:
165
+
- Use [1], [2], [3] etc. to cite sources
166
+
- Place citations at the end of sentences that reference specific information
167
+
- Each source should only be cited once in your response
168
+
- Continue your full response after adding citations - don't stop mid-answer
169
+
170
+
IMPORTANT: Always provide complete, helpful responses. If you add citations, continue writing your full answer. Do not stop your response after adding a citation.`
171
+
167
172
// Define the documentation search tool for the LLM
168
173
consttools=[
169
174
{
@@ -237,7 +242,6 @@ MAKE SURE YOU FULLY ANSWER THE USER'S QUESTION.
237
242
})
238
243
239
244
// Store citations for later use in the main streaming handler
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-modal/copilot-modal.tsx
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -48,12 +48,17 @@ function ModalCopilotMessage({ message }: CopilotModalMessage) {
0 commit comments