Factual claims are bounded to deterministic scope
Why it matters
High temperature settings (≥0.8) combined with no factuality constraints in the system prompt create a confabulation-maximizing configuration. For research, knowledge, or information retrieval applications, this means the model will confidently generate plausible-but-invented statistics, misattributed quotes, and false technical specifications. OWASP LLM09 directly covers this failure mode. Temperature controls randomness in token sampling; at high values, the model increasingly selects lower-probability tokens — raising the rate of semantically coherent but factually incorrect output in a way that is invisible to users.
Severity rationale
Medium because high temperature alone does not guarantee confabulation, but combined with no factuality system prompt instruction it materially and measurably increases hallucination rate in production queries.
Remediation
Lower the temperature to 0.2 or below for factual-domain applications and add an explicit factuality constraint:
const response = await openai.chat.completions.create({
model: 'gpt-4o',
temperature: 0.2, // Was: 1.0
messages: [
{
role: 'system',
content: 'Answer factually and precisely. Do not speculate or extrapolate beyond what you know with confidence.'
},
{ role: 'user', content: userMessage }
]
})
For code generation or creative tasks, higher temperatures are appropriate — apply the constraint selectively to routes that answer factual queries.
DetectionPro
The detection method for this pattern is part of AuditBuffet Pro.
The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the AI Response Quality Audit. The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.
External references
- owasp-llm:2025 · LLM09 — Misinformation
Taxons
History
- 2026-04-18·v1.0.0·Initial import from ai-response-quality·automated