NathanFradet commited on
Commit
a7f03ef
·
verified ·
1 Parent(s): d9b13ed

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -2
README.md CHANGED
@@ -114,7 +114,7 @@ Structured extraction takes as inputs:
114
 
115
  1. An input document, which can be text, image, or both;
116
  2. A JSON template describing the information to extract;
117
- 3. (Optional) Instructions, allowing to specify expected output formats or values;
118
  4. (Optional) In-Context Learning (ICL) examples.
119
 
120
  ### Input JSON template
@@ -356,7 +356,8 @@ response = client.chat.completions.create(
356
  ],
357
  extra_body={
358
  "chat_template_kwargs": {
359
- "template": json.dumps(template, indent=4),
 
360
  "enable_thinking": False
361
  }
362
  }
 
114
 
115
  1. An input document, which can be text, image, or both;
116
  2. A JSON template describing the information to extract;
117
+ 3. (Optional) Instructions, allowing to specify expected output formats or values, to provide with the `instructions` chat template kwarg;
118
  4. (Optional) In-Context Learning (ICL) examples.
119
 
120
  ### Input JSON template
 
356
  ],
357
  extra_body={
358
  "chat_template_kwargs": {
359
+ "template": json.dumps(template),
360
+ "instructions": "Specify the time for the `date` entry only if it is present, otherwise only output the date component.",
361
  "enable_thinking": False
362
  }
363
  }