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