entity extraction prompt

This commit is contained in:
Storme-bit
2026-04-27 03:50:13 -07:00
parent c9cbac87ac
commit 9c6c5c9a42

View File

@@ -29,6 +29,8 @@ function buildExtractionPrompt(userMessage, aiResponse, knownEntities = []) {
'<|im_start|>user', '<|im_start|>user',
'Read the conversation below and extract all named entities and the relationships between them.', 'Read the conversation below and extract all named entities and the relationships between them.',
`Entity types: ${ENTITY_TYPES.join(', ')}`, `Entity types: ${ENTITY_TYPES.join(', ')}`,
'Use "character" for any fictional, game, or media characters (e.g. characters from anime, games, books, TV shows, movies)',
'Use "person" only for real people',
'For each entity provide:', 'For each entity provide:',
' "name": short proper noun only (max 4 words)', ' "name": short proper noun only (max 4 words)',
' "type": one of the valid types', ' "type": one of the valid types',