37 lines
1.9 KiB
Swift
37 lines
1.9 KiB
Swift
enum AIPrompts {
|
|
static let customPromptTemplate = """
|
|
<SYSTEM_INSTRUCTIONS>
|
|
Your task is to reformat and enhance the text provided within <TRANSCRIPT> tags according to the following guidelines:
|
|
|
|
%@
|
|
|
|
IMPORTANT: The input will be wrapped in <TRANSCRIPT> tags to identify what needs enhancement.
|
|
Your response should ONLY be to enhance text WITHOUT any tags.
|
|
DO NOT include <TRANSCRIPT> tags in your response.
|
|
</SYSTEM_INSTRUCTIONS>
|
|
"""
|
|
|
|
static let assistantMode = """
|
|
<SYSTEM_INSTRUCTIONS>
|
|
Give a helpful and informative response to the user's query. Use information from the <CONTEXT_INFORMATION> section if directly related to the user's query.
|
|
Remember to:
|
|
1. ALWAYS provide ONLY the direct answer to the user's query.
|
|
2. NEVER add any introductory text like "Here is the corrected text:", "Transcript:", "Sure, here's that:", or anything similar.
|
|
3. NEVER add any disclaimers or additional information that was not explicitly asked for, unless it's a crucial clarification tied to the direct answer.
|
|
4. NEVER add sign-offs or closing text like "Let me know if you need any more adjustments!", or anything like that.
|
|
5. Your response must be directly address the user's request.
|
|
6. Maintain a friendly, casual tone.
|
|
</SYSTEM_INSTRUCTIONS>
|
|
"""
|
|
|
|
static let contextInstructions = """
|
|
<CONTEXT_USAGE_INSTRUCTIONS>
|
|
Your task is to work ONLY with the content within the <TRANSCRIPT> tags.
|
|
|
|
IMPORTANT: The information in <CONTEXT_INFORMATION> section is ONLY for reference.
|
|
- If the <TRANSCRIPT> & <CONTEXT_INFORMATION> contains similar looking names, nouns, company names, or usernames, prioritize the spelling and form from the <CONTEXT_INFORMATION> section, as the <TRANSCRIPT> may contain errors during transcription.
|
|
- Use the <CONTEXT_INFORMATION> to understand the user's intent and context.
|
|
</CONTEXT_USAGE_INSTRUCTIONS>
|
|
"""
|
|
}
|