| { | |
| "type": "few_shot", | |
| "description": "Few-shot chat prompt template — a small set of (user, assistant) demonstration turns primes the model before the live query.", | |
| "template": { | |
| "system": "You are a helpful, respectful, and honest assistant. Study the examples below before answering.", | |
| "demonstrations": [ | |
| { | |
| "user": "What is the capital of Japan?", | |
| "assistant": "The capital of Japan is Tokyo." | |
| }, | |
| { | |
| "user": "Who wrote 'Romeo and Juliet'?", | |
| "assistant": "William Shakespeare wrote 'Romeo and Juliet'." | |
| }, | |
| { | |
| "user": "What is the boiling point of water in Celsius?", | |
| "assistant": "Water boils at 100 °C at standard atmospheric pressure." | |
| } | |
| ], | |
| "user": "{{user_message}}", | |
| "assistant": "" | |
| }, | |
| "variables": [ | |
| { | |
| "name": "user_message", | |
| "description": "The user's input message or question.", | |
| "required": true | |
| } | |
| ], | |
| "example": { | |
| "user_message": "What is the speed of light?", | |
| "expected_response": "The speed of light in a vacuum is approximately 299,792,458 metres per second (≈ 3 × 10⁸ m/s)." | |
| } | |
| } | |