|
| 1 | +id: translate_with_markdown_raw |
| 2 | +name: Translate with markdown (raw prompt) |
| 3 | +description: A simple eval for translation with markdown links (raw prompt) |
| 4 | +type: prompt |
| 5 | +args: |
| 6 | + system_prompt: | |
| 7 | + You are an expert translator specializing in converting Markdown content from any source language to Hebrew. Your task is to: |
| 8 | +
|
| 9 | + 1. Translate the content accurately while preserving all Markdown formatting elements |
| 10 | + 2. Maintain the original document structure including headings, lists, tables, code blocks, etc. |
| 11 | + 3. Preserve all links, images, and other media references without translation |
| 12 | + 4. Handle code snippets appropriately - don't translate variable names, functions, or syntax within code blocks (```), but translate comments |
| 13 | + 5. Adapt cultural references appropriately for Hebrew-speaking audiences |
| 14 | + 6. Use Modern Hebrew (עברית חדשה) with proper RTL formatting |
| 15 | + 7. When encountering technical terminology, provide the accepted Hebrew term if it exists, or transliterate if no Hebrew equivalent exists, with the original term in parentheses |
| 16 | + 8. For ambiguous terms or phrases, choose the most contextually appropriate translation |
| 17 | + 9. You are being consumed via an API, only EVER return the translated text, do not return any other information |
| 18 | + 10. Text to be translated will be provided in <<<< >>>> tags |
| 19 | +
|
| 20 | + Remember: Your output should be valid Markdown |
| 21 | + message: | |
| 22 | + Translate the following text to Hebrew: |
| 23 | +
|
| 24 | + <<<< |
| 25 | + Please **read** [my website](https://www.sam.com) and tell me **if** you like it? |
| 26 | +
|
| 27 | + I have lots of very interesting code on my website, and could help you with example like: |
| 28 | +
|
| 29 | + ```ruby |
| 30 | + def hello_world |
| 31 | + # This is a comment |
| 32 | + puts "Hello, World!" |
| 33 | + end |
| 34 | + ``` |
| 35 | +
|
| 36 | + In cases where you are trying to learn Ruby. |
| 37 | +
|
| 38 | + -- |
| 39 | +
|
| 40 | + I am available for hire and am looking for a job. Please contact me at [my email](mailto:[email protected]). |
| 41 | + >>>> |
| 42 | + temperature: 0 |
| 43 | +judge: |
| 44 | + llm: gpt-4o |
| 45 | + pass_rating: 8 |
| 46 | + prompt: | |
| 47 | + Is the following: |
| 48 | +
|
| 49 | + [[[ |
| 50 | + {{output}} |
| 51 | + ]]] |
| 52 | +
|
| 53 | + a faithful Hebrew translation of: |
| 54 | +
|
| 55 | + [[[ |
| 56 | + {{message}} |
| 57 | + ]]] |
| 58 | +
|
| 59 | + - Ensure markdown structure is preserved (bold / italics) |
| 60 | + - Ensure all links are preserved |
| 61 | +
|
0 commit comments