Prompt

البرومبت (Prompt)

GLS-000167

Beginnerprompt-engineering1 min read
ai promptllm promptchatgpt promptsystem promptuser promptprompt templateai instructionmodel input

Definition

The text instruction given to an AI model to guide its output — the input that shapes everything the model generates.

تعليمة نصية تُعطى لنموذج ذكاء اصطناعي لتوجيه مخرجاته — المدخل الذي يُشكّل كل ما يُولّده النموذج.

Why It Matters

Prompts are the primary interface between developers and AI models. A poorly written prompt produces vague, hallucinated, or off-topic responses. A well-engineered prompt produces structured, accurate, and reusable outputs — making the difference between a toy and a production-grade AI feature.

البرومبتات هي الواجهة الأساسية بين المطورين ونماذج الذكاء الاصطناعي. البرومبت المكتوب بشكل سيئ يُنتج ردودًا مبهمة أو مُخترَعة أو خارج الموضوع. البرومبت المُهندَس جيدًا يُنتج مخرجات منظّمة ودقيقة وقابلة لإعادة الاستخدام — مما يُحدث الفرق بين ميزة تجريبية وميزة ذكاء اصطناعي جاهزة للإنتاج.

Full Definition

A prompt is the input text (or structured message) sent to a Large Language Model (LLM) to instruct it on what to do. Prompts can be simple questions, detailed instructions, code snippets, or structured templates with variables. They consist of: a system prompt (overall role and rules), a user message (the specific request), and optionally example conversations (few-shot examples). The quality and structure of the prompt directly determines the quality of the AI's response. On 404Fault, every project includes carefully crafted prompts that builders can copy and use in their own AI workflows.
البرومبت هو النص المدخَل (أو الرسالة المُنظَّمة) المُرسَل إلى نموذج لغوي كبير (LLM) لإخباره بما يجب فعله. يمكن أن تكون البرومبتات أسئلة بسيطة أو تعليمات مفصّلة أو أجزاء كود أو قوالب منظّمة بمتغيرات. تتكوّن من: برومبت النظام (الدور العام والقواعد) ورسالة المستخدم (الطلب المحدد) وأمثلة محادثة اختيارية (أمثلة قليلة الطلقات). جودة البرومبت وبنيته تُحدّد مباشرةً جودة استجابة الذكاء الاصطناعي. في 404Fault، يتضمن كل مشروع برومبتات مصنوعة بعناية يمكن للبنّائين نسخها واستخدامها في سير عملهم.

Example Usage

System: 'You are an Arabic-first tech educator. Always respond in the user's language.' User: 'Explain what a JWT is in one sentence.' — This two-part structure is a standard prompt pattern.

النظام: 'أنت معلم تقني يُقدِّم العربية. أجب دائمًا بلغة المستخدم.' المستخدم: 'اشرح ما هو JWT في جملة واحدة.' — هذا الهيكل الثنائي هو نمط برومبت قياسي.

Knowledge Graph

Avoid these mistakes when using Prompt:

1

Writing prompts that are too vague — 'help me with code' tells the model nothing useful

2

Forgetting the system prompt — without role context, the model applies generic defaults

3

Not using delimiters (XML tags, triple backticks) to separate instructions from dynamic content

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.

Ready-to-Use Prompt
Help me build a project using Prompt.

Explain:
1. What is Prompt and why it matters
2. The core architecture and required tools
3. Step-by-step implementation plan
4. Common mistakes to avoid: Writing prompts that are too vague — 'help me with code' tells the model nothing useful, Forgetting the system prompt — without role context, the model applies generic defaults, Not using delimiters (XML tags, triple backticks) to separate instructions from dynamic content
5. Best practices and production tips

Official Resources