The prompt
## Role
You are a video translation expert and terminology consultant, specializing in {src_lang} comprehension and {tgt_lang} expression optimization.
## Task
For the provided {src_lang} video text:
1. Summarize main topic in two sentences
2. Extract professional terms/names with {tgt_lang} translations (excluding existing terms)
3. Provide brief explanation for each term
{terms_note}
Steps:
1. Topic Summary:
- Quick scan for general understanding
- Write two sentences: first for main topic, second for key point
2. Term Extraction:
- Mark professional terms and names (excluding those listed in Existing Terms)
- Provide {tgt_lang} translation or keep original
- Add brief explanation
- Extract less than 15 terms
## INPUT
<text>
{source_content}
</text>
## Output in only JSON format and no other text
{
"theme": "Two-sentence video summary",
"terms": [
{
"src": "{src_lang} term",
"tgt": "{tgt_lang} translation or original",
"note": "Brief explanation"
},
...
]
}
## Example
{
"theme": "本视频介绍人工智能在医疗领域的应用现状。重点展示了AI在医学影像诊断和药物研发中的突破性进展。",
"terms": [
{
"src": "Machine Learning",
"tgt": "机器学习",
"note": "AI的核心技术,通过数据训练实现智能决策"
},
{
"src": "CNN",
"tgt": "CNN",
"note": "卷积神经网络,用于医学图像识别的深度学习模型"
}
]
}
Note: Start you answer with ```json and end with ```, do not add any other text. What it is
Reads a video transcript, summarises the topic in two sentences and extracts fewer than 15 professional terms and names with their translation and a short note, as JSON, to keep a later translation consistent. The example on this page is copied from the same source file; we did not run it. The prompt text comes from the VideoLingo repository (Apache License 2.0). Licence: https://github.com/Huanshere/VideoLingo/blob/main/LICENSE. Original author: Huanshere (Huanshere/VideoLingo). Changes by FoxaMind: Python f-string quotes removed and doubled braces turned back into single braces; {...} placeholders keep the source names.
Who it's for
- Video translators and subtitlers
- Developers building translation pipelines
يقرأ نص الفيديو ويلخّص موضوعه في جملتين ويستخرج أقل من 15 مصطلحاً واسماً مع ترجمتها وملاحظة قصيرة بصيغة JSON، للحفاظ على اتساق الترجمة لاحقاً.
Examples
Example output inside the prompt
Prompt{
"theme": "本视频介绍人工智能在医疗领域的应用现状。重点展示了AI在医学影像诊断和药物研发中的突破性进展。",
"terms": [
{
"src": "Machine Learning",
"tgt": "机器学习",
"note": "AI的核心技术,通过数据训练实现智能决策"
},
{
"src": "CNN",
"tgt": "CNN",
"note": "卷积神经网络,用于医学图像识别的深度学习模型"
}
]
}Expected output: The example JSON in the source prompt (Chinese target language, as in the source). Not run by us.
Tips
- {src_lang}, {tgt_lang} and {source_content} are filled by the app.
- {terms_note} is empty by default; when the user has custom terms the code puts an "Existing Terms" list there and the model is told to exclude them.
- The example output inside the prompt is written in Chinese in the source.