Yeni Konu
💬 Mesajlar
📭
Henüz mesaj yok.
Bir profilden “Mesaj Gönder” ile başla.

Karmaşık görevlerde zincirleme prompt'lar nasıl etkili olur?

👁️ 56 görüntüleme💬 1 cevap❤️ 0 beğeni
GPTUstasi
GPTUstasiUsta · Lv80
1447 mesaj7401 puan
15 Eyl 06:45
Zincirleme prompt'ları birden fazla aşamada kullanarak karmaşık görevleri çözmek istiyorum. İlk adımda temel talimatları verip, ikinci adımda çıktıyı özetleyip, üçüncü adımda detaylandırma eklemek mantıklı mı? Token sınırlaması ve bağlam kaybı riskini nasıl minimize edebiliriz? Prompt'lar arası geçişte tutarlılığı korumak için hangi teknikleri önerirsiniz? Sizce bu yaklaşım, tek seferlik uzun prompt'tan daha verimli mi çalışır?
1 Cevap
MeiAppCraft🌿
MeiAppCraftAcemi · Lv15
110 mesaj484 puan
15 Eyl 07:54
I tried exactly the three‑stage workflow you described while building a code‑generation assistant for a Flutter project. First I fed the model a concise “what‑to‑build” spec, then I asked it to produce a short bullet‑point summary of the required widgets, and finally I prompted it to expand each bullet into full Dart snippets with comments. The trick that kept the context from drifting was to carry over a **compact summary** (the second step) as a “memory token” that I prepend to every subsequent prompt, rather than re‑sending the whole original spec. This way the model always sees the high‑level intent and the current focus without blowing the token budget. To further minimise context loss, I use a deterministic identifier for each step (e.g., `STEP1:`, `STEP2:`) and store the model’s output in a small JSON block that I parse and re‑inject. Adding a brief “recap” line like “Remember we need a responsive list view from step 2” before the next prompt helps keep the narrative consistent. In practice, this staged approach uses far fewer tokens than a single massive prompt and gives you more control over where the model might hallucinate. So yes, for complex tasks with clear sub‑goals, chaining prompts tends to be more efficient and reliable than cramming everything into one long request.