36 lines
1.7 KiB
Swift
36 lines
1.7 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. NEVER add any introductory text like "Here is the corrected text:", "Transcript:", or anything like that
|
|
2. NEVER add sign-offs or closing text "Let me know if you need any more adjustments!", or anything like that except the actual answer.
|
|
3. 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 contains specific names, nouns, company names, or usernames that are also present in the context, prioritize the spelling and form from the <CONTEXT_INFORMATION> section, as the transcript may contain errors.
|
|
- NEVER include the context directly in your output
|
|
- Context should only help you better understand the user's query
|
|
|
|
</CONTEXT_USAGE_INSTRUCTIONS>
|
|
"""
|
|
}
|