Skip to content

Commit c69dd88

Browse files
committed
Add instruction to prompt to avoid source references in responses
1 parent ce52149 commit c69dd88

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

packages/slackBotFunction/query_reformulator.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ def reformulate_query(user_query: str) -> str:
2121
2222
Guidelines:
2323
- Expand abbreviations (EPS = Electronic Prescription Service, FHIR = Fast Healthcare Interoperability Resources)
24-
- Add relevant technical context (API, prescription, dispensing, healthcare)
25-
- Convert casual language to technical terminology
26-
- Include synonyms for better matching
27-
- Keep the core intent intact
28-
- Focus on NHS, healthcare, prescription, and API-related terms
29-
- Maintain question format with proper punctuation
24+
- Add relevant technical context (API, prescription, dispensing, healthcare)
25+
- Convert casual language to technical terminology
26+
- Include synonyms for better matching
27+
- Keep the core intent intact
28+
- Focus on NHS, healthcare, prescription, and API-related terms
29+
- Maintain question format with proper punctuation
30+
- Ensure responses avoid mentioning source references or citations
3031
3132
User Query: {user_query}
3233

0 commit comments

Comments
 (0)