Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 47b1a75

Browse files
committed
-
1 parent be41cbe commit 47b1a75

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

prompts/README.md

Whitespace-only changes.

prompts/two-shot-2-var.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Given the two examples below, extract the names, addresses, and email addresses of individuals mentioned later as Process Text. Format the extracted information in JSON, with keys for "name", "address", and "email". If any information is missing, use "null" for that field. Be concise in your output by providing only the output JSON.
2+
3+
Example 1:
4+
Text: "John Doe lives at 1234 Maple Street, Springfield. His email is [email protected]."
5+
Output:
6+
{
7+
"name": "John Doe",
8+
"address": "1234 Maple Street, Springfield",
9+
"email": "[email protected]"
10+
}
11+
12+
Example 2:
13+
Text: "Jane Smith has recently moved to 5678 Oak Avenue, Anytown. She hasn't updated her email yet."
14+
Output:
15+
{
16+
"name": "Jane Smith",
17+
"address": "5678 Oak Avenue, Anytown",
18+
"email": null
19+
}
20+
21+
Process Text: "{input_text}"
22+
Output:

prompts/two-shot-2.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Given the two examples below, extract the names, addresses, and email addresses of individuals mentioned later as Process Text. Format the extracted information in JSON, with keys for "name", "address", and "email". If any information is missing, use "null" for that field. Be concise in your output by providing only the output JSON.
2+
3+
Example 1:
4+
Text: "John Doe lives at 1234 Maple Street, Springfield. His email is [email protected]."
5+
Output:
6+
{
7+
"name": "John Doe",
8+
"address": "1234 Maple Street, Springfield",
9+
"email": "[email protected]"
10+
}
11+
12+
Example 2:
13+
Text: "Jane Smith has recently moved to 5678 Oak Avenue, Anytown. She hasn't updated her email yet."
14+
Output:
15+
{
16+
"name": "Jane Smith",
17+
"address": "5678 Oak Avenue, Anytown",
18+
"email": null
19+
}
20+
21+
Process Text: "Mark Johnson enjoys living in Berkeley California at 102 Dunston Street and use [email protected] for contacting him."
22+
Output:

0 commit comments

Comments
 (0)