Zubnet AIApprendreWiki › Prompt
Fondamentaux

Prompt

Le texte que tu donnes à un modèle d'IA pour obtenir une réponse. Un prompt peut être une question, une instruction, un brief créatif, ou un bloc de code que tu veux expliqué. Tout ce que le modèle fait commence par ce que tu mets dedans. La qualité, la spécificité et la structure de ton prompt façonnent directement la qualité de ce qui revient.

Pourquoi c'est important

Le prompt est l'interface. C'est le seul levier que la plupart des gens tirent en utilisant l'IA, et c'est un levier étonnamment puissant. Un prompt vague obtient une réponse vague ; un prompt spécifique et bien structuré peut extraire une sortie de niveau expert du même modèle. Comprendre les prompts est l'étape un pour utiliser l'IA efficacement.

Deep Dive

A prompt isn't just "a question you type." In the API world, a prompt is a structured sequence of messages — typically a system message (setting the model's behavior), followed by alternating user and assistant messages that form a conversation. When you use a chat interface like Claude.ai, you see a simple text box, but underneath, your message is wrapped in this structure before reaching the model.

The Anatomy of a Good Prompt

Effective prompts tend to share a few traits: they state what you want (not just the topic but the format, length, and audience), they provide context the model needs, and they include constraints that prevent drift. "Tell me about Python" gets you a generic overview. "Write a 200-word explanation of Python's GIL for a developer who knows Java but not Python, focusing on practical implications for web servers" gets you something useful. The difference isn't magic — it's specificity.

Prompts as Programming

There's a reason "prompt engineering" became a discipline. At the API level, prompts are essentially programs written in natural language. You can include examples (few-shot), ask the model to reason step by step (chain of thought), assign roles ("You are a senior security auditor"), or constrain output format ("Respond only in valid JSON"). These aren't hacks — they're techniques that reliably change model behavior because they shift the probability distribution the model samples from. The model isn't "following instructions" the way a human does; it's generating text that's statistically consistent with the pattern you established.

The Prompt Isn't Everything

A common misconception is that the right prompt can make any model do anything. In reality, prompts interact with the model's training data, its alignment tuning, and its architectural constraints. A prompt can't give a model knowledge it was never trained on, bypass its safety training reliably, or exceed its context window. Understanding what prompts can and can't do saves time and prevents the frustration of expecting miracles from clever wording.

Concepts liés

← Tous les termes
← Precision & Recall Prompt Caching →