- id: extract_entities
name: extract_entities
tool: OPENAI_INVOKE
config:
- name: version
value: gpt-4
- name: temperature
value: 0.1
input:
- name: prompt
value: |
Extract the following information from the text:
- Names of people
- Organizations
- Locations
- Dates
Text: {{steps.input.result.content}}
- name: json_schema
value: |
{
"type": "object",
"properties": {
"entities": {
"type": "object",
"properties": {
"people": {
"type": "array",
"items": {"type": "string"}
},
"organizations": {
"type": "array",
"items": {"type": "string"}
},
"locations": {
"type": "array",
"items": {"type": "string"}
},
"dates": {
"type": "array",
"items": {"type": "string"}
}
}
}
}
}