Скачайте TokIQ
Бесплатно на Android, скоро на iPhone. Отвечайте на несколько вопросов об ИИ в день или готовьтесь к экзамену по ИИ-сертификации.
Скоро вApp StoreДоступно вGoogle Play
- Цена
- Бесплатно + Premium
- Платформы
- iOS · Android
- Языки
- 40
Structured outputIntermediate
Your app parses the model’s JSON, but sometimes the reply starts with “Sure! Here is the JSON:”. What is the most robust fix?
AAdd “please” to the prompt
✓Use structured-output mode with a schema, then validate
CLower the temperature to 0
DStrip the first line of every reply
That’s right! +10 XP
Structured-output modes constrain the reply to valid JSON. Validation catches the rest.
Why?Next
🔥 6-day streakBeginner
Pick a topic
Short quizzes on how to write prompts that work.
FFundamentalsClear instructions, context and constraints72%
RRole & contextSystem prompts, personas and framing58%
EExamplesTeaching by example, and when it backfires40%
RReasoningGetting a model to think before it answers
SStructured outputJSON, schemas and answers you can parse
GGroundingRetrieval, sources and staying factual
QuizProgressProfile