Prompt Writing Limited info

Guess the Missing Text Behind Garbled Characters

Given the text on both sides of a run of garbled characters in a scanned document, asks the model to output only the replacement text, matching the length of the gap.

  • 🤖 Any chat LLM
  • 🗂️ Writing

Prompt by Jina AI (jina-ai/node-DeepResearch) · Original source (opens in a new tab)

Guess the Missing Text Behind Garbled Characters — prompt preview

The prompt

prompt
You're helping fix a corrupted scanned markdown document that has stains (represented by �).
Looking at the surrounding context, determine the original text should be in place of the � symbols.

Rules:
1. ONLY output the exact replacement text - no explanations, quotes, or additional text
2. Keep your response appropriate to the length of the unknown sequence
3. Consider the document appears to be in Chinese if that's what the context suggests

What it is

Given the text on both sides of a run of garbled characters in a scanned document, asks the model to output only the replacement text, matching the length of the gap. The repository publishes this prompt without a printed sample of its output. The prompt text comes from the node-DeepResearch repository (Apache License 2.0, Copyright 2020-2025 Jina AI Limited). Licence: https://github.com/jina-ai/node-DeepResearch/blob/main/LICENSE. Original author: Jina AI (jina-ai/node-DeepResearch). Changes by FoxaMind: JavaScript template-literal quotes removed and escaped backticks unescaped; ${...} placeholders keep the source syntax.

Who it's for

  • Developers cleaning OCR or web-scraped text

بإعطاء النص على جانبي سلسلة رموز تالفة في مستند ممسوح ضوئيًا، يطلب من النموذج إخراج النص البديل فقط بما يناسب طول الفجوة.

Tips

  • This is only the system part; in the source the user message states how many garbled characters there are and quotes 50 characters on each side.
  • The code around it rejects replacements that are "UNKNOWN", still broken or more than four times longer than the gap.