Skip to content

Commit c77e6bd

Browse files
authored
(EAI-1092) Fix tracing scores returning null (#777)
1 parent b31b768 commit c77e6bd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/chatbot-server-mongodb-public/src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,11 @@ export const generateResponse = wrapTraced(
241241
toolChoice: "auto",
242242
maxSteps: 5,
243243
}),
244-
{ name: "makeStepBackRagGenerateUserPrompt" }
244+
{ name: "GenerateResponseWithSearchTool" }
245245
),
246246
}),
247247
{
248-
name: "generateUserPrompt",
248+
name: "generateResponse",
249249
}
250250
);
251251

packages/chatbot-server-mongodb-public/src/tracing/getLlmAsAJudgeScores.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,10 @@ export async function getLlmAsAJudgeScores(
8585
) {
8686
return;
8787
}
88+
8889
const input = tracingData.userMessage.content;
8990
const output = tracingData.assistantMessage.content;
90-
const context = tracingData.userMessage.contextContent
91+
const context = tracingData.contextContent
9192
?.map((c) => c.text)
9293
.filter((value): value is string => typeof value === "string");
9394

0 commit comments

Comments
 (0)