You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api-reference/workflow/workflows.mdx
+73-1Lines changed: 73 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1728,7 +1728,79 @@ import EnrichmentTableToHTMLHiResOnly from '/snippets/general-shared-text/enrich
1728
1728
1729
1729
Fields for settings include:
1730
1730
1731
-
-`prompt_interface_overrides.prompt.user`: _Optional_. Any alternative prompt to use with the underlying NER model. The default is none, which means to rely on using Unstructured's internal default prompt when calling the NER model.
1731
+
-`prompt_interface_overrides.prompt.user`: _Optional_. Any alternative prompt to use with the underlying NER model. The default is none, which means to rely on using Unstructured's internal default prompt when calling the NER model.
1732
+
The internal default prompt is as follows, which you can override by providing an alternative prompt:
1733
+
1734
+
```text
1735
+
Extract named entities and their relationships from the following text.
1736
+
1737
+
Provide the entities, their corresponding types and relationships as a structured JSON response.
1738
+
1739
+
Entity types:
1740
+
- PERSON
1741
+
- ORGANIZATION
1742
+
- LOCATION
1743
+
- DATE
1744
+
- TIME
1745
+
- EVENT
1746
+
- MONEY
1747
+
- PERCENT
1748
+
- FACILITY
1749
+
- PRODUCT
1750
+
- ROLE
1751
+
- DOCUMENT
1752
+
- DATASET
1753
+
1754
+
Relationship types:
1755
+
- PERSON - ORGANIZATION: works_for, affiliated_with, founded
1756
+
- PERSON - LOCATION: born_in, lives_in, traveled_to
If you provide an alternative prompt, you must provide the entire alternative prompt in the preceding format. For best results, Unstructured strongly recommends that you limit your changes only to certain portions of the internal default prompt, specifically:
1788
+
1789
+
- Adding, renaming, or deleting items in the list of predefined types (such as `PERSON`, `ORGANIZATION`, `LOCATION`, and so on).
1790
+
- Adding, renaming, or deleting items in the list of predefined relationships (such as `works_for`, `based_in`, `has_role`, and so on).
1791
+
- As needed, adding any clarifying instructions only between these two lines:
1792
+
1793
+
```text
1794
+
...
1795
+
Provide the entities and their corresponding types as a structured JSON response.
1796
+
1797
+
(Add any clarifying instructions here only.)
1798
+
1799
+
[START OF TEXT]
1800
+
...
1801
+
```
1802
+
1803
+
- Changing any other portions of the internal default prompt could produce unexpected results.
0 commit comments