Improve JSON entity extraction prompt (#949)
Add guideline to extract entities from all JSON properties, not just primary fields like name/user. This ensures comprehensive entity extraction while maintaining the existing exclusion of date properties. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
f2c4c97362
commit
f632a8ae9e
1 changed files with 2 additions and 1 deletions
|
|
@ -152,7 +152,8 @@ Indicate the classified entity type by providing its entity_type_id.
|
|||
|
||||
Guidelines:
|
||||
1. Always try to extract an entities that the JSON represents. This will often be something like a "name" or "user field
|
||||
2. Do NOT extract any properties that contain dates
|
||||
2. Extract all entities mentioned in all other properties throughout the JSON structure
|
||||
3. Do NOT extract any properties that contain dates
|
||||
"""
|
||||
return [
|
||||
Message(role='system', content=sys_prompt),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue