Knowledgebase

Working With Documents in Prompts Print

  • aipromptengineering, guide, howto, solution, zillionkinghost, hosting, support
  • 0

Giving the model material.

WHY THIS IS THE MOST RELIABLE USE

The answer comes from provided text rather than from training data.

Fabrication risk drops substantially.

HOW TO STRUCTURE IT

Instruction first, then the document, then the specific question.

Or instruction, document, instruction repeated. For long documents, repeating the instruction at the end helps.

USEFUL PROMPTS

"Answer only from the document provided. If the answer is not in it, say so."

That instruction matters. It reduces the model supplementing from training data.

"Quote the passage supporting your answer."

Lets you verify immediately.

FOR LONG DOCUMENTS

Split them. Process sections and combine.

Very long documents receive uneven attention.

WHAT TO VERIFY

Quoted passages, against the document Extracted figures Anything you will act on

WHAT GOES WRONG

Qualifications dropped Cross-references missed Material from training data mixed with material from the document


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot