adding in entity extraction layer
This commit is contained in:
@@ -38,6 +38,8 @@ async function extractAndStoreEntities(userMessage, aiResponse) {
|
|||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.log('[entities] Ollama responded:', res.status);
|
||||||
|
|
||||||
if (!res.ok) throw new Error(`Ollama responded ${res.status}`);
|
if (!res.ok) throw new Error(`Ollama responded ${res.status}`);
|
||||||
|
|
||||||
const data = await res.json();
|
const data = await res.json();
|
||||||
@@ -62,6 +64,7 @@ async function extractAndStoreEntities(userMessage, aiResponse) {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
// Non-critical — log and move on, episode is already saved
|
// Non-critical — log and move on, episode is already saved
|
||||||
console.warn('[entities] Extraction failed:', err.message);
|
console.warn('[entities] Extraction failed:', err.message);
|
||||||
|
console.warn('[entities] Stack:', err.stack);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user