<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Chenfeng AI</title>
    <description>The latest articles on DEV Community by Chenfeng AI (chenfeng_ai).</description>
    <link>https://dev.to/chenfeng_ai</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F16623%2Ff92b1b79-2836-4267-a1fc-e8cc5c6b0c84.png</url>
      <title>DEV Community: Chenfeng AI</title>
      <link>https://dev.to/chenfeng_ai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/chenfeng_ai"/>
    <language>en</language>
    <item>
      <title>Inquiry Field Extraction Checks: Required, Format, and Conflict</title>
      <dc:creator>Chenfeng AI</dc:creator>
      <pubDate>Wed, 02 Dec 2026 04:42:25 +0000</pubDate>
      <link>https://dev.to/chenfeng_ai/inquiry-field-extraction-checks-required-format-and-conflict-1ao1</link>
      <guid>https://dev.to/chenfeng_ai/inquiry-field-extraction-checks-required-format-and-conflict-1ao1</guid>
      <description>&lt;p&gt;&lt;em&gt;This post was drafted with AI assistance and reviewed by a human before publishing.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the problem
&lt;/h2&gt;

&lt;p&gt;When an inquiry comes in, pull the fields first: product, quantity, delivery date. Get one wrong and everything downstream — sorting, routing, drafting — goes wrong with it. When field extraction is unreliable, the fault is usually not whether the model can talk, but that extraction itself has no checks. This post covers three checks: required, format, and conflict. All three need to be written as rules, run against samples, and leave a trace. Only then does field extraction hold up.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check one: required fields
&lt;/h2&gt;

&lt;p&gt;Fix the field table first: which fields are required for each inquiry type, written down as a table, not kept in someone's head. Product, quantity, and delivery date are the floor — if one is missing, stop. A missing field is never guessed, filled in, or invented. After stopping, there are two paths: if the information exists in the source material, go back and fill it; if it does not, flag it and wait for a person to confirm.&lt;/p&gt;

&lt;p&gt;Required-field checks must be written as rules, not just described in a document. There is one copy of the rules. Change a rule in that one place, and extraction, sorting, and drafting all read the same copy. If the rules live in three places, changing one and missing the other two means the fields will drift apart sooner or later.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check two: format
&lt;/h2&gt;

&lt;p&gt;Is the quantity a number, is the delivery date a date, does the product name appear in the existing product table? Format checks only recognize rules that are written down: whether numbers carry units, whether dates are written year-month-day or month/day. Write it in the rules, verify against the rules at extraction time, and flag anything that does not fit instead of letting it through.&lt;/p&gt;

&lt;p&gt;When a format is wrong, do not rewrite the original value on the spot. Keep the original, flag what is wrong, and note what format the rule requires; a person confirms and writes it back. Once the original is changed, there is no way to check later what actually came in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check three: conflict
&lt;/h2&gt;

&lt;p&gt;When two sources disagree on the same field, stop first — do not just pick the one that looks right. The product name is written one way in the body and another way in the attachment; the quantity is one number in the subject line and another in the body. Flag the conflict, write down the original value from each source, and wait for a person to decide which one to use.&lt;/p&gt;

&lt;p&gt;Conflict handling needs rules too: which source takes priority, and under what conditions. Write that into the rule table. A conflict with no priority rule always waits for a person to confirm; it is never decided automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  Worked example: the three checks as rules
&lt;/h2&gt;

&lt;p&gt;Field rule configuration, shown as plain-text lines:&lt;/p&gt;

&lt;p&gt;{"field": "product", "required": true, "match": "product_table"}&lt;br&gt;
{"field": "quantity", "required": true, "type": "number"}&lt;br&gt;
{"field": "delivery_date", "required": true, "type": "date"}&lt;br&gt;
{"rule": "missing_required", "action": "stop_and_flag"}&lt;br&gt;
{"rule": "format_mismatch", "action": "keep_original_and_flag"}&lt;br&gt;
{"rule": "value_conflict", "action": "flag_both_sources_for_review"}&lt;/p&gt;

&lt;p&gt;There is one copy of the rules, and extraction, sorting, and drafting all read the same copy. Change a rule in that one place, not once in three places.&lt;/p&gt;

&lt;h2&gt;
  
  
  Acceptance: run three samples through
&lt;/h2&gt;

&lt;p&gt;Acceptance samples should be anonymized or from real data you are authorized to use — never run raw client data straight through. The samples must cover all three checks: the first is missing a required field, to see whether extraction stops; the second has a wrongly formatted quantity, to see whether it gets caught; the third has two sources disagreeing on the same field, to see whether the conflict gets flagged.&lt;/p&gt;

&lt;p&gt;Acceptance also checks the trace: for each extraction record, can you find which version of the source material it relied on, which rule fired, and who confirmed it? If the record cannot be found, the process was not completed, and that item does not pass.&lt;/p&gt;

&lt;h2&gt;
  
  
  Boundaries and pitfalls
&lt;/h2&gt;

&lt;p&gt;Anything that carries responsibility stops at human confirmation: numbers and dates quoted to a client, where a mistake has consequences, get flagged after extraction and wait for a person — they do not go straight into a draft. Confirmation checkpoints belong in the rules, not in spoken habit.&lt;/p&gt;

&lt;p&gt;Two pitfalls show up most often. First, the rules are written in a document but never turned into configuration, so everyone extracts by their own understanding and the fields drift apart. Second, samples are taken straight from real client data to save effort, with no anonymization and no authorization, leaving data behind that should never have been kept.&lt;/p&gt;

&lt;p&gt;All three checks written as rules, run against samples, and traceable — that is when field extraction holds up. Whichever check fails, fix that one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Scope
&lt;/h2&gt;

&lt;p&gt;This post describes a method for checking extracted inquiry fields. Numbers and scenarios are illustrative, not a client case. It makes no promise about results, rankings, or orders; price and timeline are confirmed per project after assessment.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>softwareengineering</category>
    </item>
  </channel>
</rss>
