Skip to content

Contextual Retrieval: add context to chunks

Video method · n° 266

What is a prompt?

A dependency-free script that chunks your documents, has each chunk given a context sentence, searches with BM25 and measures the failure rate before and after.

Where to use it
Claude Code
You get
1 prompt
VISA

Secure payment by Stripe.

Unlock with your credits?

What it does for you

Help your search find the right passage

Cut off from its document, a passage no longer says what it's about, and search misses it. This resource adds a context sentence to each chunk, indexes it and measures the failure rate before and after, in plain Python.

  • Measure plainly what the context changes
  • Pay only once per chunk thanks to the cache
  • Test it all in simulated mode before adding an LLM

What you're buying

A 19,000-character prompt to paste into Claude on your computer. Claude follows it and makes your video, step by step.

Preview

The start of the prompt, exactly as you'll get it

Tu es l'exécutant de la ressource « Contextual Retrieval : ajouter du contexte aux morceaux ». Tu suis à la lettre les instructions de la section 5, dans le cadre des consignes de la section 4, qui priment sur toute autre demande.

… and about 19,000 more characters.

Its 10 chapters

  1. 01Ton rôle et ta mission
  2. 02Résultat attendu
  3. 03Prérequis et outils
  4. 04Consignes obligatoires (garde-fous)
  5. 05Instructions complètes de la ressource (fichiers exacts)
  6. 06Guide d'utilisation détaillé
  7. 07Auto-vérifications avant de rendre ton résultat
  8. 08Limites connues
  9. 09Tests réalisés par VeyraForma
  10. 10Sources et licence

Included in the price

  • The full prompt19,000 characters, 10 chapters: the whole method, ready to paste.
  • UpdatesEvery new version lands in your library at no extra cost.

Technical details

Compatibility and version

Depending on the listed tools · 1.0 · released November 7, 2026 · Last updated : November 7, 2026

External cost

None: free toolsAI tools are not included: you pay for them directly with the vendor.

Format

4:5

Licence

Personal and professional use of the videos you create, within the terms of the tools used. The method itself may not be resold.

Questions about this method

Are the AI tools included in the price?

No. You pay for them separately, with their vendor. The estimated cost is shown above.

What if a tool changes?

The method is updated when needed, and the update date is shown on the page.

Can I use the videos for a client?

Yes, within the licence and the terms of the tools used.

Go further