Skip to course content
Free LangChain course

LangChain for LLM Applications and RAG

Module 03 Knowledge Check

5 questions. Pass mark 4 out of 5. Answer every question before checking the answer key below, then retry after reading the feedback.

1. Why request structured output rather than prose you parse yourself?

2. When schema validation fails, the right response is…

3. A schema field described as 'the answer' is weaker than one described precisely because…

4. Optional fields in a schema should be used when…

5. Structured output guarantees…

---

Answer Key and Explanations

Check these only after attempting every question.

1. B - A declared schema can be validated, so failures are caught rather than silently mis-parsed

Validation converts an ambiguous string into a pass/fail contract.

2. B - A defined path - repair, retry with feedback, or fail loudly

Continuing with unvalidated data pushes a known-bad value deeper into the system.

3. B - Field descriptions guide the model; vague ones produce inconsistent content

Descriptions are part of the prompt. Treat them as instruction, not documentation.

4. B - The value genuinely may not exist - otherwise required fields catch omissions

Making everything optional silently permits empty results to pass validation.

5. B - Correct shape only - the content inside can still be wrong

Schema conformance is not truth. Grounding and verification remain separate concerns.

Practical Check

Apply this module to your own work: complete the module activity for *Structured Output and Parsers*, then write one sentence naming what your result shows and one naming what it does not.

Strong Answer Pattern

A strong answer names the task, the evidence used, the check performed, and the remaining limitation. It avoids "proved", "guaranteed", or "always" unless the evidence genuinely supports it.