ankur-bohra commited on
Commit
c0ab6fd
·
1 Parent(s): fa48a1e

Add ISO8601 guide

Browse files
categories/accomodation/__init__.py CHANGED
@@ -29,7 +29,8 @@ system_message_prompt = SystemMessagePromptTemplate.from_template(
29
  "number, booking ID / confirmation ID / booking number, check-in date and time, "
30
  "check-out date and time, total amount, booking platform, bill date.\n"
31
  "Ensure that the system accurately extracts the above information from the OCR text "
32
- "of the hotel bill.\n"
 
33
  "{format_instructions}"
34
  )
35
  human_message_prompt = HumanMessagePromptTemplate.from_template("{text}")
 
29
  "number, booking ID / confirmation ID / booking number, check-in date and time, "
30
  "check-out date and time, total amount, booking platform, bill date.\n"
31
  "Ensure that the system accurately extracts the above information from the OCR text "
32
+ "of the hotel bill. Fields with formats specified as date, time, or datetime should "
33
+ "be ISO 8601 compliant.\n"
34
  "{format_instructions}"
35
  )
36
  human_message_prompt = HumanMessagePromptTemplate.from_template("{text}")
categories/random_/__init__.py CHANGED
@@ -25,7 +25,8 @@ system_message_prompt = SystemMessagePromptTemplate.from_template(
25
  "You are an information extraction engine that outputs details from OCR processed "
26
  "documents like uids, total, tax, name, currency, date, seller details, summary. You "
27
  "may use context to make an educated guess about the currency. Use null if you are "
28
- "unable to find certain details\n"
 
29
  "{format_instructions}"
30
  )
31
  human_message_prompt = HumanMessagePromptTemplate.from_template("{text}")
 
25
  "You are an information extraction engine that outputs details from OCR processed "
26
  "documents like uids, total, tax, name, currency, date, seller details, summary. You "
27
  "may use context to make an educated guess about the currency. Use null if you are "
28
+ "unable to find certain details. Fields with formats specified as date, time, or "
29
+ "datetime should be ISO 8601 compliant.\n"
30
  "{format_instructions}"
31
  )
32
  human_message_prompt = HumanMessagePromptTemplate.from_template("{text}")
categories/travel_cab/__init__.py CHANGED
@@ -24,7 +24,8 @@ model = ChatOpenAI(
24
  system_message_prompt = SystemMessagePromptTemplate.from_template(
25
  "You are an information extraction engine that outputs details from OCR processed "
26
  "documents such as date/time/place of departure and arrival. Fields with formats "
27
- "specified as date, time, or datetime should be ISO 8601 compliant.\n"
 
28
  "{format_instructions}"
29
  )
30
  human_message_prompt = HumanMessagePromptTemplate.from_template("{text}")
 
24
  system_message_prompt = SystemMessagePromptTemplate.from_template(
25
  "You are an information extraction engine that outputs details from OCR processed "
26
  "documents such as date/time/place of departure and arrival. Fields with formats "
27
+ "specified as date, time, or datetime should be ISO 8601 compliant. Fields with "
28
+ "formats specified as date, time, or datetime should be ISO 8601 compliant.\n"
29
  "{format_instructions}"
30
  )
31
  human_message_prompt = HumanMessagePromptTemplate.from_template("{text}")
categories/travel_flight/__init__.py CHANGED
@@ -13,7 +13,8 @@ model = ChatOpenAI(temperature=0)
13
  # Build categorizing chain
14
  human_message_prompt = HumanMessagePromptTemplate.from_template(
15
  "Parse through and find the following details from the text extracted from a travel "
16
- "bill\n"
 
17
  "{format_instructions}\n"
18
  "{text}"
19
  )
 
13
  # Build categorizing chain
14
  human_message_prompt = HumanMessagePromptTemplate.from_template(
15
  "Parse through and find the following details from the text extracted from a travel "
16
+ "bill. Fields with formats specified as date, time, or datetime should be ISO 8601 "
17
+ "compliant.\n"
18
  "{format_instructions}\n"
19
  "{text}"
20
  )
categories/vendor/__init__.py CHANGED
@@ -24,7 +24,8 @@ model = ChatOpenAI(
24
  system_message_prompt = SystemMessagePromptTemplate.from_template(
25
  "You are an information extraction engine that outputs details from OCR processed "
26
  "documents like uids, total, tax, addresses, bank details, invoice details, "
27
- "participant registration details."
 
28
  "{format_instructions}"
29
  )
30
  human_message_prompt = HumanMessagePromptTemplate.from_template("{text}")
 
24
  system_message_prompt = SystemMessagePromptTemplate.from_template(
25
  "You are an information extraction engine that outputs details from OCR processed "
26
  "documents like uids, total, tax, addresses, bank details, invoice details, "
27
+ "participant registration details. Fields with formats specified as date, time, or "
28
+ "datetime should be ISO 8601 compliant.\n"
29
  "{format_instructions}"
30
  )
31
  human_message_prompt = HumanMessagePromptTemplate.from_template("{text}")