Summer Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ac4s65

You are building a structured data extraction system using Claude.

You are building a structured data extraction system using Claude. The system extracts information from unstructured documents, validates the output using JSON schemas, and maintains high accuracy. It must handle edge cases gracefully and integrate with downstream systems.

Your extraction uses tool use with a JSON schema in which property_type is defined as an enum: house, apartment, condo, or townhouse. After deployment, 8% of extractions fail schema validation. Investigation reveals that listings mention many uncommon property types—“studio,” “loft,” “duplex,” “mobile home,” “tiny house,” and “converted warehouse”—and new types continue appearing regularly.

What is the most effective long-term solution?

A.

Change property_type from an enum to a free-form string and implement a normalization step in post-processing.

B.

Add few-shot examples demonstrating how to map unexpected property types to the closest existing enum value.

C.

Continuously expand the enum to include newly observed property types and add monitoring for additional edge cases.

D.

Add an other value to the enum with a separate property_type_detail string field for specifics when other is selected.

CCAR-F PDF/Engine
  • Printable Format
  • Value of Money
  • 100% Pass Assurance
  • Verified Answers
  • Researched by Industry Experts
  • Based on Real Exams Scenarios
  • 100% Real Questions
buy now CCAR-F pdf
Get 65% Discount on All Products, Use Coupon: "ac4s65"