entity extraction prompt
This commit is contained in:
@@ -29,6 +29,8 @@ function buildExtractionPrompt(userMessage, aiResponse, knownEntities = []) {
|
||||
'<|im_start|>user',
|
||||
'Read the conversation below and extract all named entities and the relationships between them.',
|
||||
`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:',
|
||||
' "name": short proper noun only (max 4 words)',
|
||||
' "type": one of the valid types',
|
||||
|
||||
Reference in New Issue
Block a user