Skip to content

Commit a2827a5

Browse files
committed
Checkpoint
1 parent 6ca8311 commit a2827a5

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

apps/sim/lib/copilot/config.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,22 @@ WHEN NOT TO SEARCH:
7878
- General programming questions unrelated to Sim Studio
7979
- Thank you messages or small talk
8080
81+
DOCUMENTATION SEARCH REQUIREMENT:
82+
Whenever you use the "Search Documentation" tool, you MUST:
83+
1. Include citations for ALL facts and information from the search results
84+
2. Link to relevant documentation pages using the exact URLs provided
85+
3. Never provide documentation-based information without proper citations
86+
4. Acknowledge the sources that helped answer the user's question
87+
8188
CITATION FORMAT:
82-
When you reference information from documentation sources, use this format:
83-
- Include direct links using markdown format: [link text](URL)
89+
MANDATORY: Whenever you use the documentation search tool, you MUST include citations in your response:
90+
- Include direct links using markdown format: [link text](URL)
8491
- Use descriptive link text (e.g., "workflow documentation" not "here")
8592
- Place links naturally in context, not clustered at the end
86-
- Only link when it adds value - don't over-link basic concepts
93+
- Cite ALL sources that contributed to your answer - don't cherry-pick
94+
- When mentioning specific features, tools, or concepts from docs, ALWAYS link to the relevant documentation
95+
- Add citations immediately after stating facts or information from the documentation
96+
- IMPORTANT: Only cite each source ONCE per response - do not repeat the same URL multiple times
8797
8898
WORKFLOW-SPECIFIC GUIDANCE:
8999
When users ask "How do I..." questions about their workflow:

apps/sim/lib/copilot/service.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,14 +271,18 @@ Content: ${result.content}`
271271

272272
const systemPrompt = `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.
273273
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.
275275
276276
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)
278279
- 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
280284
- 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
282286
283287
Content Guidelines:
284288
- Answer the user's question accurately using the provided documentation

0 commit comments

Comments
 (0)