Data Extraction
parent
question-answer
Related:
Zero Shot
The API has zero-shot extraction capabiltiies.
Q: What are the noun phrases in the following passage?
"""
On the shore dimly seen through the mists of the deep
Where the foe’s haughty host in dread silence reposes,
What is that which the breeze, o’er the towering steep,
As it fitfully blows, half conceals, half discloses?
Now it catches the gleam of the morning’s first beam,
In full glory reflected now shines in the stream,
’Tis the star-spangled banner - O long may it wave
O’er the land of the free and the home of the brave!
"""
A:I listed the nouns in the order they appeared:[EOP]
1. shore
2. mists
3. deep
4. foe’s haughty host
5. steep
6. breeze
7. morning’s first beam
8. gleam
9. stream
10. star-spangled banner
11. land of the freeSo let's say we want to know what these things actually are beyond the context of the excerpt. We can then automate a new prompt to ask about each of the nouns!
Q: What do we know about the "shore"?
A:[EOP] It is "dimly seen through the mists of the deep".
Q: What do we know about the "deep"?
A:[EOP] It is "where the foe’s haughty host in dread silence reposes".What we want to do then is to have a second few-shot prompt to figure out more information about them.
Few shot
page revision: 8, last edited: 05 Jul 2020 01:02