MI Történik?

Mesterséges intelligencia hírek magyarul — naponta frissülve

← Vissza a főoldalra

Az Anthropic útmutatója szerint a kontextus dokumentumokat a prompt elejére kell helyezni

Most people are doing long context prompts backwards. Instead of burying your documents in the middle or bottom of your prompt, Anthropic's latest guidance says to put all your longform data at the very top—before your instructions, examples, or questions. The results? Up to 30% better response quality, especially when working with multiple complex documents. Here's the simple structure that works: First, dump all your long documents at the top using XML tags like <document> and <source>. Then, add your actual query at the very end. Pro tip: Ask Claude to quote relevant parts of the documents first before carrying out the main task. This helps it focus on what matters instead of getting lost in document noise. Oh, and it might sound counterintuitive, but putting your most important question last (not first) dramatically improves Claude's ability to process massive amounts of information.
Miért fontos?

Following these structural prompt engineering tips can improve response quality by up to 30% for long-context models.

Eredeti forrás megtekintése (angol) →