extraction error logging

This commit is contained in:
Storme-bit
2026-04-21 00:02:13 -07:00
parent 528318b374
commit 9ab63cca19

View File

@@ -26,6 +26,7 @@ function buildExtractionPrompt(userMessage, aiResponse, knownEntities = []) {
`Entity types to extract: ${ENTITY_TYPES.join(', ')}`,
'For each entity found, provide: name, type, and a one-sentence notes field.',
'Return your answer as: { "entities": [ ... ] }',
'For each entity found, you MUST provide a non-empty notes field describing it based on the conversation.',
'',
knownBlock,
'--- CONVERSATION ---', // clear delimiter helps smaller models