AI & PromptingAdvanced 3 to 5 hours

Pass the Needle-in-a-Haystack Test

Force an LLM to find one specific clause hidden in a 100-page contract.

The Scenario

LLMs suffer from "Lost in the Middle" syndrome. If you put 100 pages of text in the context window, they often forget information located in the middle of the document. You need to extract the "Force Majeure" clause from a massive PDF.

The Brief

Write a prompt strategy designed specifically to overcome "Lost in the Middle" syndrome when searching for a specific fact in a massive context window.

Deliverables

  • The "Needle" Prompt (instructing the AI what to look for)
  • Two techniques used in the prompt to improve recall (e.g., "Scratchpad/CoT", "Repeating the question at the end", "Role-playing as an auditor")
  • An explanation of why the "Lost in the Middle" phenomenon occurs in Transformer models.

Submission Guidance

Repeating the primary instruction at the very end of the prompt (closest to where the AI starts generating) is a proven technique for long-context recall.

Submit Your Work

Your submission is graded against the rubric on the right. If you pass, you get a public Badge URL you can share on LinkedIn. There is no draft save, so work offline first and paste your finished response here.

This appears on your public Badge.

0/20000 charactersMarkdown supported

One per line or comma separated. Up to 5 links.

By submitting, you agree your submission text, name, and evaluation will appear on a public Badge URL.