Improve JSON entity extraction prompt

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:
jackaldenryan 2025-09-29 18:01:09 -05:00
parent ded2bad3f2
commit 00ecc8305b

View file

@ -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),