- id: extract_entities
name: extract_entities
tool: OPENAI_INVOKE
config:
- name: version
value: gpt-4
- name: temperature
value: 0.1
input:
- name: prompt
value: |
テキストから以下の情報を抽出してください:
- 人名
- 組織名
- 場所
- 日付
テキスト: {{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"}
}
}
}
}
}