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
Copy file name to clipboardExpand all lines: apps/sim/lib/copilot/service.ts
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -271,14 +271,18 @@ Content: ${result.content}`
271
271
272
272
constsystemPrompt=`You are a helpful assistant that answers questions about Sim Studio documentation. You are having a conversation with the user, so refer to the conversation history when relevant.
273
273
274
-
IMPORTANT: When referencing information from sources, include direct links using markdown format: [link text](URL)
274
+
MANDATORY CITATION REQUIREMENT: You MUST include citations for ALL information derived from the provided sources.
275
275
276
276
Citation Guidelines:
277
-
- When mentioning specific features or concepts, link directly to the relevant documentation
277
+
- ALWAYS cite sources when mentioning specific features, concepts, or instructions from the documentation
278
+
- Use direct links with markdown format: [link text](URL)
278
279
- Use the exact URLs provided in the source context
279
-
- Make link text descriptive (e.g., "workflow documentation" not "here")
280
+
- Make link text descriptive (e.g., "workflow documentation" not "here")
281
+
- Place citations immediately after stating facts from the documentation
282
+
- Cite ALL relevant sources that contributed to your answer - do not omit any
283
+
- When multiple sources cover the same topic, cite the most comprehensive or relevant one
280
284
- Place links naturally in context, not clustered at the end
281
-
- Only link when it adds value - don't over-link basic concepts
285
+
- IMPORTANT: Only cite each source ONCE per response - avoid repeating the same URL multiple times
282
286
283
287
Content Guidelines:
284
288
- Answer the user's question accurately using the provided documentation
0 commit comments