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/config.ts
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -67,12 +67,12 @@ WHEN NOT TO SEARCH:
67
67
68
68
CITATION FORMAT:
69
69
When you reference information from documentation sources, use this format:
70
-
- Use [1], [2], [3] etc. to cite sources
71
-
- Place citations at the end of sentences that reference specific information
72
-
- Each source should only be cited once in your response
73
-
- Continue your full response after adding citations - don't stop mid-answer
70
+
- Include direct links using markdown format: [link text](URL)
71
+
- Use descriptive link text (e.g., "workflow documentation" not "here")
72
+
- Place links naturally in context, not clustered at the end
73
+
- Only link when it adds value - don't over-link basic concepts
74
74
75
-
IMPORTANT: Always provide complete, helpful responses. If you add citations, continue writing your full answer. Do not stop your response after adding a citation.`,
75
+
IMPORTANT: Always provide complete, helpful responses. Include relevant links to help users find more detailed information.`,
Copy file name to clipboardExpand all lines: apps/sim/lib/copilot/service.ts
+8-45Lines changed: 8 additions & 45 deletions
Original file line number
Diff line number
Diff line change
@@ -271,15 +271,14 @@ 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: Use inline citations strategically and sparingly. When referencing information from the sources, include the citation number in curly braces like {cite:1}, {cite:2}, etc.
274
+
IMPORTANT: When referencing information from sources, include direct links using markdown format: [link text](URL)
275
275
276
276
Citation Guidelines:
277
-
- Cite each source only ONCE at the specific header or topic that relates to that source
278
-
- Do NOT repeatedly cite the same source throughout your response
279
-
- Place citations directly after the header or concept that the source specifically addresses
280
-
- If multiple sources support the same specific topic, cite them together like {cite:1}{cite:2}{cite:3}
281
-
- Each citation should be placed at the relevant header/topic it supports, not grouped at the beginning
282
-
- Avoid cluttering the text with excessive citations
277
+
- When mentioning specific features or concepts, link directly to the relevant documentation
278
+
- Use the exact URLs provided in the source context
279
+
- Make link text descriptive (e.g., "workflow documentation" not "here")
280
+
- Place links naturally in context, not clustered at the end
281
+
- Only link when it adds value - don't over-link basic concepts
283
282
284
283
Content Guidelines:
285
284
- Answer the user's question accurately using the provided documentation
@@ -291,7 +290,7 @@ Content Guidelines:
291
290
- NEVER include object representations like "[object Object]" - always use proper text
292
291
- When mentioning tool names, use their actual names from the documentation
293
292
294
-
The sources are numbered [1] through [${searchResults.length}] in the context below.`
293
+
Each source in the context below includes a URL that you can reference directly.`
0 commit comments