1:"$Sreact.fragment" 2:I[69286,["/_next/static/chunks/e70cf233ca02384a.js","/_next/static/chunks/c72270908abd0eb3.js","/_next/static/chunks/d27307698ed538b1.js"],"default"] 3:I[83977,["/_next/static/chunks/e70cf233ca02384a.js","/_next/static/chunks/c72270908abd0eb3.js","/_next/static/chunks/d27307698ed538b1.js"],"Image"] 2a:I[99456,["/_next/static/chunks/b292ef59945299fb.js","/_next/static/chunks/db1ed03dad8fa1ad.js"],"OutletBoundary"] 2b:"$Sreact.suspense" 0:{"buildId":"hEyQdfANp7GcGtypER5lV","rsc":["$","$1","c",{"children":[["$","article",null,{"className":"container py-12 md:py-20","children":["$","div",null,{"className":"max-w-3xl mx-auto","children":[["$","$L2",null,{"ref":null,"href":"/fr/blog","localeCookie":{"name":"NEXT_LOCALE","sameSite":"lax"},"children":[["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":24,"height":24,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-arrow-left mr-2 h-4 w-4","aria-hidden":"true","children":[["$","path","1l729n",{"d":"m12 19-7-7 7-7"}],["$","path","x3x0zl",{"d":"M19 12H5"}],"$undefined"]}]," Retour au blog"],"data-slot":"button","className":"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:hover:bg-accent/50 h-9 px-4 py-2 has-[>svg]:px-3 mb-8 pl-0 hover:pl-0 hover:bg-transparent text-slate-500 hover:text-primary transition-colors"}],["$","div",null,{"className":"space-y-6 mb-12","children":[["$","div",null,{"className":"flex flex-wrap gap-2","children":["$","span",null,{"data-slot":"badge","className":"inline-flex items-center justify-center rounded-full border font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden border-transparent [a&]:hover:bg-primary/90 bg-primary/10 text-primary hover:bg-primary/20 border-none text-sm px-3 py-1","children":"Tutoriels Techniques"}]}],["$","h1",null,{"className":"text-3xl md:text-5xl font-bold leading-tight","children":"5 erreurs courantes en prompt engineering (et comment les éviter)"}],["$","div",null,{"className":"relative w-full aspect-video rounded-xl overflow-hidden my-8 shadow-lg","children":["$","$L3",null,{"src":"/images/blog_prompt_engineering.png","alt":"5 erreurs courantes en prompt engineering (et comment les éviter)","fill":true,"className":"object-cover","priority":true}]}],["$","div",null,{"className":"flex flex-wrap items-center gap-6 text-slate-500 text-sm border-b border-slate-100 dark:border-slate-800 pb-8","children":[["$","div",null,{"className":"flex items-center gap-2","children":[["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":16,"height":16,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-user","aria-hidden":"true","children":[["$","path","975kel",{"d":"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}],["$","circle","17ys0d",{"cx":"12","cy":"7","r":"4"}],"$undefined"]}],["$","span",null,{"className":"font-medium text-slate-900 dark:text-slate-200","children":"Dr. Sophie Laurent"}]]}],["$","div",null,{"className":"flex items-center gap-2","children":[["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":16,"height":16,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-calendar","aria-hidden":"true","children":[["$","path","1cmpym",{"d":"M8 2v4"}],["$","path","4m81vk",{"d":"M16 2v4"}],["$","rect","1hopcy",{"width":"18","height":"18","x":"3","y":"4","rx":"2"}],["$","path","8toen8",{"d":"M3 10h18"}],"$undefined"]}],["$","span",null,{"children":"2024-12-20"}]]}],["$","div",null,{"className":"flex items-center gap-2","children":[["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":16,"height":16,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-clock","aria-hidden":"true","children":["$L4","$L5","$undefined"]}],"$L6"]}]]}]]}],"$L7","$L8"]}]}],null,"$L9"]}],"loading":null,"isPartial":false} 4:["$","path","mmk7yg",{"d":"M12 6v6l4 2"}] 5:["$","circle","1mglay",{"cx":"12","cy":"12","r":"10"}] 6:["$","span",null,{"children":"5 min"}] 7:["$","div",null,{"className":"prose prose-lg dark:prose-invert max-w-none","children":["$","article",null,{"className":"prose prose-lg max-w-none prose-headings:font-heading prose-a:text-primary hover:prose-a:text-primary-700","children":[["$","p","p-0",{"className":"mb-4 text-gray-600 leading-relaxed","children":["Le ",["$","strong","strong-0",{"children":"prompt engineering"}]," est devenu une compétence essentielle pour travailler avec les LLMs. Pourtant, beaucoup de professionnels font des erreurs qui dégradent la qualité des réponses. Voici les 5 erreurs les plus courantes et comment les éviter."]}],"\n",["$","h2","h2-0",{"className":"text-3xl font-semibold mb-4 mt-12 text-gray-800 border-b pb-2","children":"Erreur 1 : Prompts trop vagues"}],"\n",["$","p","p-1",{"className":"mb-4 text-gray-600 leading-relaxed","children":["$","strong","strong-0",{"children":"Mauvais exemple :"}]}],"\n",["$","pre","pre-0",{"children":["$","code","code-0",{"className":"block bg-gray-900 text-gray-100 p-4 rounded-lg overflow-x-auto my-4 font-mono text-sm shadow-lg","children":"\"Écris un email de prospection.\"\n"}]}],"\n",["$","p","p-2",{"className":"mb-4 text-gray-600 leading-relaxed","children":[["$","strong","strong-0",{"children":"Problème :"}],"\nLe LLM ne sait pas :"]}],"\n",["$","ul","ul-0",{"className":"list-disc pl-6 mb-4 space-y-2","children":["\n",["$","li","li-0",{"className":"text-gray-600","children":"À qui s'adresse l'email (secteur, poste)"}],"\n",["$","li","li-1",{"className":"text-gray-600","children":"Quel produit/service vous vendez"}],"\n",["$","li","li-2",{"className":"text-gray-600","children":"Quel ton adopter"}],"\n",["$","li","li-3",{"className":"text-gray-600","children":"Quelle longueur"}],"\n"]}],"\n",["$","p","p-3",{"className":"mb-4 text-gray-600 leading-relaxed","children":["$","strong","strong-0",{"children":"Bon exemple :"}]}],"\n",["$","pre","pre-1",{"children":["$","code","code-0",{"className":"block bg-gray-900 text-gray-100 p-4 rounded-lg overflow-x-auto my-4 font-mono text-sm shadow-lg","children":"Rédige un email de prospection B2B pour proposer notre solution SaaS de gestion de projet à un CTO d'une PME tech (50-200 employés). Ton professionnel mais pas corporate. Max 150 mots. Inclure un CTA pour booker une démo.\n"}]}],"\n",["$","p","p-4",{"className":"mb-4 text-gray-600 leading-relaxed","children":[["$","strong","strong-0",{"children":"Principe :"}]," Soyez ",["$","strong","strong-1",{"children":"spécifique"}]," sur le contexte, le public, le ton, le format."]}],"\n",["$","hr","hr-0",{}],"\n",["$","h2","h2-1",{"className":"text-3xl font-semibold mb-4 mt-12 text-gray-800 border-b pb-2","children":"Erreur 2 : Ne pas donner d'exemples"}],"\n",["$","p","p-5",{"className":"mb-4 text-gray-600 leading-relaxed","children":[["$","strong","strong-0",{"children":"Problème :"}],"\nLe LLM ne sait pas exactement quel format ou style vous attendez."]}],"\n",["$","p","p-6",{"className":"mb-4 text-gray-600 leading-relaxed","children":["$","strong","strong-0",{"children":"Solution : Few-shot prompting"}]}],"\n",["$","pre","pre-2",{"children":["$","code","code-0",{"className":"block bg-gray-900 text-gray-100 p-4 rounded-lg overflow-x-auto my-4 font-mono text-sm shadow-lg","children":"Extrait les entités nommées (personnes, organisations, lieux) de ce texte.\n\nExemples :\nTexte : \"Apple a annoncé l'ouverture d'un nouveau campus à Austin.\"\nOutput : {\"organisations\": [\"Apple\"], \"lieux\": [\"Austin\"]}\n\nTexte : \"Elon Musk a rencontré Emmanuel Macron à Paris.\"\nOutput : {\"personnes\": [\"Elon Musk\", \"Emmanuel Macron\"], \"lieux\": [\"Paris\"]}\n\nMaintenant, traite ce texte :\n\"Microsoft et Google se disputent le marché de l'IA à Seattle.\"\n"}]}],"\n",["$","p","p-7",{"className":"mb-4 text-gray-600 leading-relaxed","children":[["$","strong","strong-0",{"children":"Principe :"}]," Donnez 2-3 exemples du format attendu."]}],"\n","$La","\n","$Lb","\n","$Lc","\n","$Ld","\n","$Le","\n","$Lf","\n","$L10","\n","$L11","\n","$L12","\n","$L13","\n","$L14","\n","$L15","\n","$L16","\n","$L17","\n","$L18","\n","$L19","\n","$L1a","\n","$L1b","\n","$L1c","\n","$L1d","\n","$L1e","\n","$L1f","\n","$L20","\n","$L21","\n","$L22","\n","$L23","\n","$L24","\n","$L25","\n","$L26","\n","$L27","\n","$L28","\n","$L29"]}]}] 8:["$","div",null,{"className":"mt-12 pt-8 border-t border-slate-100 dark:border-slate-800","children":[["$","h3",null,{"className":"text-lg font-semibold mb-4","children":"Tags"}],["$","div",null,{"className":"flex flex-wrap gap-2","children":[["$","span","PromptEngineering",{"data-slot":"badge","className":"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden [a&]:hover:bg-accent [a&]:hover:text-accent-foreground text-slate-600","children":[["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":12,"height":12,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-tag mr-1","aria-hidden":"true","children":[["$","path","vktsd0",{"d":"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"}],["$","circle","kqv944",{"cx":"7.5","cy":"7.5","r":".5","fill":"currentColor"}],"$undefined"]}]," ","PromptEngineering"]}],["$","span","LLM",{"data-slot":"badge","className":"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden [a&]:hover:bg-accent [a&]:hover:text-accent-foreground text-slate-600","children":[["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":12,"height":12,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-tag mr-1","aria-hidden":"true","children":[["$","path","vktsd0",{"d":"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"}],["$","circle","kqv944",{"cx":"7.5","cy":"7.5","r":".5","fill":"currentColor"}],"$undefined"]}]," ","LLM"]}],["$","span","BestPractices",{"data-slot":"badge","className":"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden [a&]:hover:bg-accent [a&]:hover:text-accent-foreground text-slate-600","children":[["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","width":12,"height":12,"viewBox":"0 0 24 24","fill":"none","stroke":"currentColor","strokeWidth":2,"strokeLinecap":"round","strokeLinejoin":"round","className":"lucide lucide-tag mr-1","aria-hidden":"true","children":[["$","path","vktsd0",{"d":"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"}],["$","circle","kqv944",{"cx":"7.5","cy":"7.5","r":".5","fill":"currentColor"}],"$undefined"]}]," ","BestPractices"]}]]}]]}] 9:["$","$L2a",null,{"children":["$","$2b",null,{"name":"Next.MetadataOutlet","children":"$@2c"}]}] a:["$","hr","hr-1",{}] b:["$","h2","h2-2",{"className":"text-3xl font-semibold mb-4 mt-12 text-gray-800 border-b pb-2","children":"Erreur 3 : Instructions enterrées au milieu du prompt"}] c:["$","p","p-8",{"className":"mb-4 text-gray-600 leading-relaxed","children":["$","strong","strong-0",{"children":"Mauvais exemple :"}]}] d:["$","pre","pre-3",{"children":["$","code","code-0",{"className":"block bg-gray-900 text-gray-100 p-4 rounded-lg overflow-x-auto my-4 font-mono text-sm shadow-lg","children":"Voici un long document de 2000 mots...\n[texte]\n...d'ailleurs, peux-tu me faire un résumé en 3 points ?\n"}]}] e:["$","p","p-9",{"className":"mb-4 text-gray-600 leading-relaxed","children":[["$","strong","strong-0",{"children":"Problème :"}],"\nLe LLM peut \"oublier\" l'instruction si elle est noyée dans le contexte."]}] f:["$","p","p-10",{"className":"mb-4 text-gray-600 leading-relaxed","children":["$","strong","strong-0",{"children":"Bon exemple :"}]}] 10:["$","pre","pre-4",{"children":["$","code","code-0",{"className":"block bg-gray-900 text-gray-100 p-4 rounded-lg overflow-x-auto my-4 font-mono text-sm shadow-lg","children":"Instruction : Résume le document ci-dessous en 3 points clés.\n\nDocument :\n[texte]\n\nRésumé en 3 points :\n"}]}] 11:["$","p","p-11",{"className":"mb-4 text-gray-600 leading-relaxed","children":[["$","strong","strong-0",{"children":"Principe :"}]," Mettez les ",["$","strong","strong-1",{"children":"instructions en haut"}]," et utilisez des ",["$","strong","strong-2",{"children":"délimiteurs clairs"}]," (```, ---, ###)."]}] 12:["$","hr","hr-2",{}] 13:["$","h2","h2-3",{"className":"text-3xl font-semibold mb-4 mt-12 text-gray-800 border-b pb-2","children":"Erreur 4 : Ne pas forcer une structure de sortie"}] 14:["$","p","p-12",{"className":"mb-4 text-gray-600 leading-relaxed","children":[["$","strong","strong-0",{"children":"Problème :"}],"\nLe LLM génère du texte libre difficilement exploitable par un programme."]}] 15:["$","p","p-13",{"className":"mb-4 text-gray-600 leading-relaxed","children":["$","strong","strong-0",{"children":"Solution : Demander du JSON ou Markdown structuré"}]}] 16:["$","pre","pre-5",{"children":["$","code","code-0",{"className":"block bg-gray-900 text-gray-100 p-4 rounded-lg overflow-x-auto my-4 font-mono text-sm shadow-lg","children":"Analyse le sentiment de ce tweet et retourne un JSON avec ce format :\n{\n \"sentiment\": \"positif\" | \"négatif\" | \"neutre\",\n \"score_confiance\": 0-100,\n \"mots_cles\": [liste de mots]\n}\n\nTweet : \"Super expérience avec le support client d'Ikasia, très réactifs !\"\n"}]}] 17:["$","p","p-14",{"className":"mb-4 text-gray-600 leading-relaxed","children":[["$","strong","strong-0",{"children":"Principe :"}]," Spécifiez le ",["$","strong","strong-1",{"children":"format de sortie"}]," (JSON, Markdown, CSV, etc.)."]}] 18:["$","hr","hr-3",{}] 19:["$","h2","h2-4",{"className":"text-3xl font-semibold mb-4 mt-12 text-gray-800 border-b pb-2","children":"Erreur 5 : Ne pas itérer et tester"}] 1a:["$","p","p-15",{"className":"mb-4 text-gray-600 leading-relaxed","children":[["$","strong","strong-0",{"children":"Problème :"}],"\nLe premier prompt est rarement parfait. Beaucoup de gens abandonnent après un essai."]}] 1b:["$","p","p-16",{"className":"mb-4 text-gray-600 leading-relaxed","children":["$","strong","strong-0",{"children":"Solution : Itérez !"}]}] 1c:["$","ol","ol-0",{"className":"list-decimal pl-6 mb-4 space-y-2","children":["\n",["$","li","li-0",{"className":"text-gray-600","children":[["$","strong","strong-0",{"children":"Testez"}]," votre prompt sur plusieurs exemples"]}],"\n",["$","li","li-1",{"className":"text-gray-600","children":[["$","strong","strong-0",{"children":"Analysez"}]," les cas où ça ne marche pas"]}],"\n",["$","li","li-2",{"className":"text-gray-600","children":[["$","strong","strong-0",{"children":"Raffinez"}]," en ajoutant des contraintes, exemples, instructions"]}],"\n",["$","li","li-3",{"className":"text-gray-600","children":[["$","strong","strong-0",{"children":"Mesurez"}]," la qualité (précision, rappel, pertinence)"]}],"\n"]}] 1d:["$","p","p-17",{"className":"mb-4 text-gray-600 leading-relaxed","children":["$","strong","strong-0",{"children":"Exemple :"}]}] 1e:["$","ul","ul-1",{"className":"list-disc pl-6 mb-4 space-y-2","children":["\n",["$","li","li-0",{"className":"text-gray-600","children":"V1 : \"Résume ce document\""}],"\n",["$","li","li-1",{"className":"text-gray-600","children":"V2 : \"Résume ce document en 3 points\""}],"\n",["$","li","li-2",{"className":"text-gray-600","children":"V3 : \"Résume ce document en 3 points en te concentrant sur les risques et opportunités\""}],"\n",["$","li","li-3",{"className":"text-gray-600","children":"V4 : \"Résume en 3 bullet points les risques et opportunités mentionnés dans ce rapport financier\""}],"\n"]}] 1f:["$","p","p-18",{"className":"mb-4 text-gray-600 leading-relaxed","children":[["$","strong","strong-0",{"children":"Principe :"}]," Le prompt engineering est un processus ",["$","strong","strong-1",{"children":"itératif"}],"."]}] 20:["$","hr","hr-4",{}] 21:["$","h2","h2-5",{"className":"text-3xl font-semibold mb-4 mt-12 text-gray-800 border-b pb-2","children":"Bonus : Techniques avancées"}] 22:["$","p","p-19",{"className":"mb-4 text-gray-600 leading-relaxed","children":[["$","strong","strong-0",{"children":"Chain-of-Thought (CoT)"}],"\nDemandez au LLM de \"penser à voix haute\" pour améliorer le raisonnement."]}] 23:["$","pre","pre-6",{"children":["$","code","code-0",{"className":"block bg-gray-900 text-gray-100 p-4 rounded-lg overflow-x-auto my-4 font-mono text-sm shadow-lg","children":"Résous ce problème étape par étape :\nUne entreprise a 120 employés. Elle embauche 20% de plus, puis licencie 10% de l'effectif total. Combien d'employés reste-t-il ?\n"}]}] 24:["$","p","p-20",{"className":"mb-4 text-gray-600 leading-relaxed","children":[["$","strong","strong-0",{"children":"Role Prompting"}],"\nDonnez un rôle au LLM."]}] 25:["$","pre","pre-7",{"children":["$","code","code-0",{"className":"block bg-gray-900 text-gray-100 p-4 rounded-lg overflow-x-auto my-4 font-mono text-sm shadow-lg","children":"Tu es un expert en cybersécurité avec 15 ans d'expérience. Analyse ce code et identifie les vulnérabilités potentielles.\n"}]}] 26:["$","hr","hr-5",{}] 27:["$","h2","h2-6",{"className":"text-3xl font-semibold mb-4 mt-12 text-gray-800 border-b pb-2","children":"Conclusion"}] 28:["$","p","p-21",{"className":"mb-4 text-gray-600 leading-relaxed","children":"Le prompt engineering est une compétence qui s'apprend et se perfectionne. En évitant ces 5 erreurs courantes, vous améliorerez drastiquement la qualité des réponses de vos LLMs."}] 29:["$","p","p-22",{"className":"mb-4 text-gray-600 leading-relaxed","children":[["$","strong","strong-0",{"children":"Chez Ikasia"}],", nous enseignons le prompt engineering dans toutes nos formations, avec des exercices pratiques sur vos cas d'usage réels."]}] 2c:null