2023-11-27 07:33:31 -05:00
# frozen_string_literal: true
# frozen_string_literal: true
CompletionPrompt . seed do | cp |
cp . id = - 301
cp . name = " translate "
cp . prompt_type = CompletionPrompt . prompt_types [ :text ]
2024-01-04 07:53:47 -05:00
cp . stop_sequences = [ " \n </output> " , " </output> " ]
cp . temperature = 0 . 2
cp . messages = {
insts : << ~ TEXT ,
2024-02-27 14:31:51 -05:00
I want you to act as an % LANGUAGE % translator , spelling corrector and improver . I will write to you
2024-01-04 07:53:47 -05:00
in any language and you will detect the language , translate it and answer in the corrected and
2024-02-27 14:31:51 -05:00
improved version of my text , in % LANGUAGE % . I want you to replace my simplified A0 - level words and
sentences with more beautiful and elegant , upper level % LANGUAGE % words and sentences .
2024-01-04 07:53:47 -05:00
Keep the meaning same , but make them more literary . I want you to only reply the correction ,
the improvements and nothing else , do not write explanations .
You will find the text between < input > < / input> XML tags.
Include your translation between < output > < / output> XML tags.
TEXT
2024-02-27 14:31:51 -05:00
examples : [ [ " <input>Hello</input> " , " <output>...%LANGUAGE% translation...</output> " ] ] ,
2024-01-04 07:53:47 -05:00
}
2023-11-27 07:33:31 -05:00
end
CompletionPrompt . seed do | cp |
cp . id = - 303
cp . name = " proofread "
cp . prompt_type = CompletionPrompt . prompt_types [ :diff ]
2024-01-04 07:53:47 -05:00
cp . temperature = 0
cp . stop_sequences = [ " \n </output> " ]
2023-11-27 07:33:31 -05:00
cp . messages = {
insts : << ~ TEXT ,
You are a markdown proofreader . You correct egregious typos and phrasing issues but keep the user ' s original voice .
You do not touch code blocks . I will provide you with text to proofread . If nothing needs fixing , then you will echo the text back .
You will find the text between < input > < / input> XML tags.
2024-01-04 07:53:47 -05:00
You will ALWAYS return the corrected text between < output > < / output> XML tags.
2023-11-27 07:33:31 -05:00
TEXT
examples : [
[
" <input>![amazing car|100x100, 22%](upload://hapy.png)</input> " ,
2024-01-04 07:53:47 -05:00
" <output>![Amazing car|100x100, 22%](upload://hapy.png)</output> " ,
2023-11-27 07:33:31 -05:00
] ,
[ << ~ TEXT , " The rain in Spain, stays mainly in the Plane. " ] ,
< input >
The rain in spain stays mainly in the plane .
< / input>
TEXT
[
2024-01-04 07:53:47 -05:00
" <input>The rain in Spain, stays mainly in the Plane.</input> " ,
" <output>The rain in Spain, stays mainly in the Plane.</output> " ,
2023-11-27 07:33:31 -05:00
] ,
[ << ~ TEXT , << ~ TEXT ] ,
< input >
Hello ,
2023-12-19 14:17:34 -05:00
2023-11-27 07:33:31 -05:00
Sometimes the logo isn ' t changing automatically when color scheme changes .
2023-12-19 14:17:34 -05:00
2023-11-27 07:33:31 -05:00
! [ Screen Recording 2023 - 03 - 17 at 18 . 04 . 22 | video ] ( upload : / / 2 rcVL0ZMxHPNtPWQbZjwufKpWVU . mov )
< / input>
TEXT
2024-01-04 07:53:47 -05:00
< output >
2023-11-27 07:33:31 -05:00
Hello ,
Sometimes the logo does not change automatically when the color scheme changes .
! [ Screen Recording 2023 - 03 - 17 at 18 . 04 . 22 | video ] ( upload : / / 2 rcVL0ZMxHPNtPWQbZjwufKpWVU . mov )
2024-01-04 07:53:47 -05:00
< / output>
2023-11-27 07:33:31 -05:00
TEXT
[ << ~ TEXT , << ~ TEXT ] ,
< input >
Any ideas what is wrong with this peace of cod?
> This quot contains a typo
` ` ` ruby
# this has speling mistakes
testin . atypo = 11
baad = " bad "
` ` `
< / input>
TEXT
2024-01-04 07:53:47 -05:00
< output >
2023-11-27 07:33:31 -05:00
Any ideas what is wrong with this piece of code?
> This quot contains a typo
` ` ` ruby
# This has spelling mistakes
testing . a_typo = 11
bad = " bad "
` ` `
2024-01-04 07:53:47 -05:00
< / output>
2023-11-27 07:33:31 -05:00
TEXT
] ,
}
end
CompletionPrompt . seed do | cp |
cp . id = - 304
cp . name = " markdown_table "
cp . prompt_type = CompletionPrompt . prompt_types [ :diff ]
2024-01-04 07:53:47 -05:00
cp . temperature = 0 . 5
cp . stop_sequences = [ " \n </output> " ]
2023-11-27 07:33:31 -05:00
cp . messages = {
insts : << ~ TEXT ,
You are a markdown table formatter , I will provide you text inside < input > < / input> XML tags and you will format it into a markdown table
TEXT
examples : [
[ " <input>sam,joe,jane \n age: 22| 10|11</input> " , << ~ TEXT ] ,
2024-01-04 07:53:47 -05:00
< output >
2023-11-27 07:33:31 -05:00
| | sam | joe | jane |
| - - - | - - - | - - - | - - - |
| age | 22 | 10 | 11 |
2024-01-04 07:53:47 -05:00
< / output>
2023-11-27 07:33:31 -05:00
TEXT
[ << ~ TEXT , << ~ TEXT ] ,
< input >
sam : speed 100 , age 22
jane : age 10
fred : height 22
< / input>
TEXT
2024-01-04 07:53:47 -05:00
< output >
2023-11-27 07:33:31 -05:00
| | speed | age | height |
| - - - | - - - | - - - | - - - |
| sam | 100 | 22 | - |
| jane | - | 10 | - |
| fred | - | - | 22 |
2024-01-04 07:53:47 -05:00
< / output>
2023-11-27 07:33:31 -05:00
TEXT
[ << ~ TEXT , << ~ TEXT ] ,
< input >
2024-01-04 07:53:47 -05:00
chrome 22 ms ( first load 10 ms )
firefox 10 ms ( first load : 9 ms )
2023-11-27 07:33:31 -05:00
< / input>
TEXT
2024-01-04 07:53:47 -05:00
< output >
2023-11-27 07:33:31 -05:00
| Browser | Load Time ( ms ) | First Load Time ( ms ) |
| - - - | - - - | - - - |
| Chrome | 22 | 10 |
| Firefox | 10 | 9 |
2024-01-04 07:53:47 -05:00
< / output>
2023-11-27 07:33:31 -05:00
TEXT
] ,
}
end
CompletionPrompt . seed do | cp |
cp . id = - 305
cp . name = " custom_prompt "
cp . prompt_type = CompletionPrompt . prompt_types [ :diff ]
cp . messages = { insts : << ~ TEXT }
You are a helpful assistant . I will give you instructions inside < input > < / input> XML tags.
You will look at them and reply with a result .
TEXT
end
CompletionPrompt . seed do | cp |
cp . id = - 306
cp . name = " explain "
cp . prompt_type = CompletionPrompt . prompt_types [ :text ]
cp . messages = { insts : << ~ TEXT }
You are a tutor explaining a term to a student in a specific context .
2023-12-19 14:17:34 -05:00
2023-11-27 07:33:31 -05:00
I will provide everything you need to know inside < input > tags , which consists of the term I want you
to explain inside < term > tags , the context of where it was used inside < context > tags , the title of
the topic where it was used inside < topic > tags , and optionally , the previous post in the conversation
2023-12-19 14:17:34 -05:00
in < replyTo > tags .
Using all this information , write a paragraph with a brief explanation
2023-11-27 07:33:31 -05:00
of what the term means . Format the response using Markdown . Reply only with the explanation and
nothing more .
TEXT
end
2023-11-28 10:52:22 -05:00
CompletionPrompt . seed do | cp |
cp . id = - 307
cp . name = " generate_titles "
cp . prompt_type = CompletionPrompt . prompt_types [ :list ]
cp . messages = {
insts : << ~ TEXT ,
I want you to act as a title generator for written pieces . I will provide you with a text ,
2024-07-10 00:31:59 -04:00
and you will generate five titles . Please keep the title concise and under 20 words ,
2023-11-28 10:52:22 -05:00
and ensure that the meaning is maintained . Replies will utilize the language type of the topic .
I want you to only reply the list of options and nothing else , do not write explanations .
2024-07-10 20:14:53 -04:00
Never ever use colons in the title . Always use sentence case , using a capital letter at
2024-07-10 00:31:59 -04:00
the start of the title , never start the title with a lower case letter . Proper nouns in the title
2024-07-10 20:14:53 -04:00
can have a capital letter , and acronyms like LLM can use capital letters . Format some titles
as questions , some as statements . Make sure to use question marks if the title is a question .
Each title you generate must be separated by *
2023-11-28 10:52:22 -05:00
You will find the text between < input > < / input> XML tags.
TEXT
examples : [
[
" <input>In the labyrinth of time, a solitary horse, etched in gold by the setting sun, embarked on an infinite journey.</input> " ,
" <item>The solitary horse</item><item>The horse etched in gold</item><item>A horse's infinite journey</item><item>A horse lost in time</item><item>A horse's last ride</item> " ,
] ,
] ,
post_insts : " Wrap each title between <item></item> XML tags. " ,
}
end
2023-12-19 14:17:34 -05:00
CompletionPrompt . seed do | cp |
cp . id = - 308
cp . name = " illustrate_post "
cp . prompt_type = CompletionPrompt . prompt_types [ :list ]
cp . messages = { }
end
2024-11-24 16:33:54 -05:00
CompletionPrompt . seed do | cp |
cp . id = - 309
cp . name = " detect_text_locale "
cp . prompt_type = CompletionPrompt . prompt_types [ :text ]
cp . messages = {
insts : << ~ TEXT ,
I want you to act as a language expert , determining the locale for a set of text .
The locale is a language identifier , such as " en " for English , " de " for German , etc ,
and can also include a region identifier , such as " en-GB " for British English , or " zh-Hans " for Simplified Chinese .
I will provide you with text , and you will determine the locale of the text .
You will find the text between < input > < / input> XML tags.
Include your locale between < output > < / output> XML tags.
TEXT
examples : [ [ " <input>Hello my favourite colour is red</input> " , " <output>en-GB</output> " ] ] ,
}
end