Skip to content

Commit c6e7b9c

Browse files
author
Bob Strahan
committed
improve extraction prompt to restrict output to specified attributes
1 parent a290771 commit c6e7b9c

File tree

6 files changed

+18
-0
lines changed

6 files changed

+18
-0
lines changed

config_library/pattern-2/bank-statement-sample/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ extraction:
248248
249249
</extraction-guidelines>
250250
251+
If the attributes section below contains a list of attribute names and
252+
descriptions, then output only those attributes, using the provided
253+
descriptions as guidance for finding the correct values.
251254
252255
<attributes>
253256

config_library/pattern-2/default/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,9 @@ extraction:
488488
489489
</extraction-guidelines>
490490
491+
If the attributes section below contains a list of attribute names and
492+
descriptions, then output only those attributes, using the provided
493+
descriptions as guidance for finding the correct values.
491494
492495
<attributes>
493496

config_library/pattern-2/few_shot_example_with_multimodal_page_classification/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,9 @@ extraction:
753753
754754
</extraction-guidelines>
755755
756+
If the attributes section below contains a list of attribute names and
757+
descriptions, then output only those attributes, using the provided
758+
descriptions as guidance for finding the correct values.
756759
757760
<attributes>
758761

config_library/pattern-3/default/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,9 @@ extraction:
350350
351351
</extraction-guidelines>
352352
353+
If the attributes section below contains a list of attribute names and
354+
descriptions, then output only those attributes, using the provided
355+
descriptions as guidance for finding the correct values.
353356
354357
<attributes>
355358

notebooks/examples/config/extraction.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ extraction:
5353
5454
</extraction-guidelines>
5555
56+
If the attributes section below contains a list of attribute names and
57+
descriptions, then output only those attributes, using the provided
58+
descriptions as guidance for finding the correct values.
5659
5760
<attributes>
5861

notebooks/usecase-specific-examples/multi-page-bank-statement/config/extraction.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ extraction:
5353
5454
</extraction-guidelines>
5555
56+
If the attributes section below contains a list of attribute names and
57+
descriptions, then output only those attributes, using the provided
58+
descriptions as guidance for finding the correct values.
5659
5760
<attributes>
5861

0 commit comments

Comments
 (0)