Hallucination
الهلوسة (Hallucination)
GLS-000119
Definition
When an AI model confidently states something false — inventing facts, URLs, code, or references that don't exist.
عندما يُصرِّح نموذج AI بثقة بشيء خاطئ — يخترع حقائق أو URLs أو كودًا أو مراجع غير موجودة.
Why It Matters
Beginners using AI coding assistants often copy hallucinated code without testing it — leading to bugs and security issues. Always verify AI output.
المبتدئون الذين يستخدمون مساعدي ترميز AI غالبًا ما ينسخون كودًا مهلوسًا دون اختباره — مما يُؤدي إلى أخطاء ومشاكل أمنية. تحقق دائمًا من مخرجات AI.
Full Definition
Example Usage
“An AI suggests importing from 'next/ai-helpers' — a package that doesn't exist. The developer must verify every import AI suggests.”
“يقترح AI استيرادًا من 'next/ai-helpers' — وهي حزمة غير موجودة. يجب على المطوّر التحقق من كل استيراد يقترحه AI.”
AI Builder Tips
Avoid these mistakes when using Hallucination:
Treating AI output as ground truth without verification
Using hallucinated code in production without running it first
Sign in to unlock guided AI explanations from AI Teacher.
Generate a Prompt
Copy this prompt and use it directly with any AI model — no setup needed.
Help me build a project using Hallucination. Explain: 1. What is Hallucination and why it matters 2. The core architecture and required tools 3. Step-by-step implementation plan 4. Common mistakes to avoid: Treating AI output as ground truth without verification, Using hallucinated code in production without running it first 5. Best practices and production tips
Official Resources
No official documentation link on file for Hallucination yet.