Skip to content

Commit 5abc04d

Browse files
author
Bob Strahan
committed
minor prompt formatting
1 parent bbe3b17 commit 5abc04d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

config_library/pattern-2/default/config.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ extraction:
441441
top_k: '5'
442442
task_prompt: >-
443443
<background>
444+
444445
You are an expert in document analysis and information extraction.
445446
You can understand and extract key information from documents classified as type
446447
@@ -450,8 +451,10 @@ extraction:
450451
451452
452453
<task>
454+
453455
Your task is to take the unstructured text provided and convert it into a well-organized table format using JSON. Identify the main entities, attributes, or categories mentioned in the attributes list below and use them as keys in the JSON object.
454-
Then, extract the relevant information from the text and populate the corresponding values in the JSON object.
456+
Then, extract the relevant information from the text and populate the corresponding values in the JSON object.
457+
455458
</task>
456459
457460
@@ -492,6 +495,7 @@ extraction:
492495
493496
<<CACHEPOINT>>
494497
498+
495499
<document-text>
496500
497501
{DOCUMENT_TEXT}

config_library/pattern-2/few_shot_example_with_multimodal_page_classification/config.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,7 @@ extraction:
708708
only provide data found in the document being provided.
709709
task_prompt: >
710710
<background>
711+
711712
You are an expert in document analysis and information extraction.
712713
You can understand and extract key information from documents classified as type
713714
@@ -717,8 +718,10 @@ extraction:
717718
718719
719720
<task>
721+
720722
Your task is to take the unstructured text provided and convert it into a well-organized table format using JSON. Identify the main entities, attributes, or categories mentioned in the attributes list below and use them as keys in the JSON object.
721-
Then, extract the relevant information from the text and populate the corresponding values in the JSON object.
723+
Then, extract the relevant information from the text and populate the corresponding values in the JSON object.
724+
722725
</task>
723726
724727
@@ -759,6 +762,7 @@ extraction:
759762
760763
<<CACHEPOINT>>
761764
765+
762766
<document-text>
763767
764768
{DOCUMENT_TEXT}

0 commit comments

Comments
 (0)