extraction error logging
This commit is contained in:
@@ -222,9 +222,6 @@ async function chatStream(externalId, userMessage, onChunk, options = {}) {
|
||||
let session = await memory.getSessionByExternalId(externalId);
|
||||
if (!session) session = await memory.createSession(externalId);
|
||||
|
||||
const entities = await getRelevantEntities(userMessage, session.project_id ?? null);
|
||||
console.log('[orchestration] entity search projectId:', session.project_id ?? null);
|
||||
|
||||
let projectSessionIds = null;
|
||||
let activeSystemPrompt = systemPrompt ?? ORCHESTRATION.SYSTEM_PROMPT;
|
||||
if (session.project_id) {
|
||||
@@ -261,6 +258,7 @@ async function chatStream(externalId, userMessage, onChunk, options = {}) {
|
||||
);
|
||||
|
||||
const entities = await getRelevantEntities(userMessage, session.project_id ?? null);
|
||||
console.log('[orchestration] entity search projectId:', session.project_id ?? null);
|
||||
|
||||
const prompt = buildPrompt(
|
||||
recentEpisodes,
|
||||
|
||||
Reference in New Issue
Block a user