extraction error logging

This commit is contained in:
Storme-bit
2026-04-21 00:22:29 -07:00
parent 9ab63cca19
commit 936b04742e
3 changed files with 11 additions and 4 deletions

View File

@@ -27,6 +27,10 @@ function buildExtractionPrompt(userMessage, aiResponse, knownEntities = []) {
'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.',
'For each entity found, provide:',
' "name": short proper noun only (max 4 words, e.g. "Sydney", "NexusAI", "Tim")',
' "type": one of the valid types',
' "notes": one specific sentence about this entity based on the conversation (not generic)',
'',
knownBlock,
'--- CONVERSATION ---', // clear delimiter helps smaller models