How They Use AI  |  Newest

<< Home  |  Prompting craft

Reduce model hallucinations by allowing negative outputs

AreaPrompting craft
AI usedAny
SourceReddit thread
Postedunknown

The move

Explicitly instruct the model to return a specific phrase like 'No Foods Found' if no relevant information exists in the source text.

Steps

  1. Keep prompts shorter than the input text.
  2. Provide an explicit fallback option for empty results.
  3. Avoid complex JSON output requirements.
  4. Use simple, direct formatting like newlines.
  5. Perform a final check to verify extracted items exist in the source.

Prompt for your AI

Follow these rules strictly: 1. Return 'No Foods Found' if no food items are identified. 2. For each food item, format as: [amount] [unit] [food name]. 3. Use food names directly from the text. 4. Do not include any explanations or additional text in your response.

What happened

The user noted that models often hallucinate when forced to extract information that isn't present. By providing an explicit 'no result' option and keeping prompts shorter than the input text, the model stops trying to complete the text creatively. Commenters confirmed this approach helps prevent the model from inventing details when the source material is sparse.

Who confirmed it

The poster noted that 'less words often just worked better' and that giving the model the option to say no explicitly reduces hallucination.

Watch out

Long prompts that exceed the length of the input text can confuse the model, causing it to complete the text instead of extracting data.

Give it to your agent

Read https://howtheyuse.ai/p/reduce-model-hallucinations-by-allowing-negative-outputs.md and help me do this.

Sources



Last updated November 26, 2026.