AI AI Tools Guidebook
Home AI Tool Tutorials AI Use Cases Prompt Library About
🌐 中文
Home / #llm-output

#llm-output

Articles tagged with #llm-output

Troubleshooting

Few-Shot Examples Have Uneven Quality and Drag Output Down

You gave the model 5 examples; 2 are great, 3 are mediocre, and it averages toward the mediocre ones. Why example variance hurts and how to curate down to 3-5 consistent ones.

May 24, 2026 #Prompt engineering #Troubleshooting
Troubleshooting

Model Returns Invalid JSON Because Schema Was Described, Not Enforced

You asked for JSON matching a schema. Most calls return valid JSON, some return prose with JSON inside, some omit fields. Description vs enforcement, and how to fix at the API layer.

May 24, 2026 #Prompt engineering #Troubleshooting
Troubleshooting

Model Invented Fake Citations and URLs

The model produced a citation like Smith et al. 2019 and the paper does not exist, or a URL that 404s. Why citation hallucination happens and how to stop it for good.

May 24, 2026 #Prompt engineering #Troubleshooting
Troubleshooting

Model Replies in the Wrong Language (How to Lock It)

You prompted in English and the model answered in Chinese, or it switched mid-output. The exact cause of language drift and the system-prompt + retry pattern that locks the output language, verified June 2026.

May 24, 2026 #Prompt engineering #Troubleshooting
Troubleshooting

LLM Response Cut Off Mid-Sentence: max_tokens Too Low (2026 Fix)

The model's reply ends mid-sentence, mid-JSON, or with an unclosed code block. It is almost always the token cap. How to size it, detect truncation per SDK, and recover.

May 24, 2026 #Prompt engineering #Troubleshooting
Troubleshooting

Prompt Asks for 10 Items, Model Returns 3 and Stops

You asked for 10 ideas and got 3, or 10 slots padded with filler. Why list-length prompts under-deliver, and the prompt + schema fixes that actually get you N distinct items.

May 24, 2026 #Prompt engineering #Troubleshooting
Troubleshooting

Prompt Has a Stale Year That Anchors the Model to Wrong Context

Your prompt still says 2023 in 2026, so the model recommends GPT-4, quotes old pricing, and cites dead frameworks. Fastest fix: inject the current date dynamically. Plus a diagnosis table and how to confirm it's gone.

May 24, 2026 #Prompt engineering #Troubleshooting
AI AI Tools Guidebook

A bilingual content site focused on AI tools and digital productivity.

Navigation

  • AI Tool Tutorials
  • AI Use Cases
  • Prompt Library
  • Indie Dev & Website Building
  • Troubleshooting
  • Official Resources & Docs

Legal

  • About
  • Contact
  • Privacy
  • Terms
  • Disclaimer
  • Editorial Policy
  • Affiliate Disclosure
  • RSS Feed
© 2026 AI Tools Guidebook. All rights reserved.