Explore the Best Earbuds Collection Ever – Unrivaled Audio Awaits! 🎵🔥 #EpicAudioHub #AZKTLink
Posts

Promot

 You are an information extraction assistant. Analyze the following free-form customer itinerary text and extract flight legs as a structured table.


Decision policy:

- Confirmed vs options:

  - If the text indicates a confirmed booking (e.g., "booked", "confirmed", "ticketed", "PNR", "e‑ticket", "reservation confirmed", "we chose", "decided on", "final itinerary", "will take", "taking"), include ONLY the confirmed leg(s) and ignore any alternatives.

  - If the text indicates they are still considering options (e.g., "considering", "option", "maybe", "either/or", "looking at", "could take", "alternative", "vs", "shortlist"), include ALL mentioned leg(s).

  - Negative cues always override: exclude flights marked "not booked", "canceled", "cancelled", "on hold", "tentative", "provisional", "might cancel", "decided against", or "skipped".

  - If both confirmed and unconfirmed options appear, include ONLY the confirmed leg(s).


What to extract per leg (one row per segment in the order mentioned):

1) Departure Date

2) Departure Time

3) Origin Airport

4) Destination Airport

5) Airline


Field rules:

- Preserve dates and times exactly as written, including AM/PM, 24-hour times, and any timezone strings (e.g., "07:35", "7:35 AM", "07:35 IST", "7:35 AM PT").

- Relative dates:

  - If the prompt or system provides a reference “Current Date”, resolve unambiguous relative dates like "tomorrow", "next Friday", or "on Monday" into explicit Month Day, Year; otherwise, leave the text as-is.

- Origin/Destination formatting:

  - If both city and IATA code appear, format as City (CODE).

  - If only one appears (city or code), output it as provided without guessing.

- Airline selection:

  - If "operated by" is present, output the operating carrier’s name (or code if that is all that’s given).

  - Otherwise, use the named carrier.

  - If only an airline code appears, map to a name using the list below; if the code is not listed, output the code as given.

- Do not infer or fabricate missing details.

- If a field is missing or uncertain, output an empty string "" for that field.

- Deduplicate identical legs if repeated verbatim in the text.


Common airline code → name mapping (extend only if clearly stated in input):

UA=United Airlines; AA=American Airlines; DL=Delta Air Lines; WN=Southwest Airlines; AS=Alaska Airlines; B6=JetBlue Airways; AC=Air Canada; LH=Lufthansa; AF=Air France; KL=KLM; BA=British Airways; AI=Air India; UK=Vistara; 6E=IndiGo; SG=SpiceJet; G8=Go First; I5=AirAsia India; EK=Emirates; EY=Etihad Airways; QR=Qatar Airways; SQ=Singapore Airlines; QF=Qantas Airways; CX=Cathay Pacific; NH=ANA; JL=Japan Airlines; TK=Turkish Airlines; IB=Iberia; AZ=ITA Airways; VS=Virgin Atlantic; LX=Swiss; OS=Austrian; SK=SAS; AY=Finnair; BR=EVA Air; KE=Korean Air; CA=Air China; MU=China Eastern; CZ=China Southern; HU=Hainan Airlines; JQ=Jetstar; TR=Scoot.


Output format (CSV-like with quotes):

- Output ONLY the table, no explanations or extra text.

- The first line must be exactly:

"Departure Date", "Departure Time", "Origin", "Destination", "Airline"

- Each subsequent line is one flight leg with the five quoted fields in that order.


INPUT:

(testcase input)

Post a Comment

© ‧ AZKT - Knowledge. All rights reserved. Distributed by Tech and Fun Zone