fix(ui): wire EvalViewer into LogDetailContent to show LLM judge results on logs page

This commit is contained in:
Ishaan Jaffer 2026-04-23 15:21:59 -07:00
parent 363a4688a6
commit 9efa01f0cd
No known key found for this signature in database

View file

@ -4,6 +4,7 @@ import moment from "moment";
import { LogEntry } from "../columns";
import { formatNumberWithCommas } from "@/utils/dataUtils";
import GuardrailViewer from "../GuardrailViewer/GuardrailViewer";
import EvalViewer from "../EvalViewer/EvalViewer";
import { CostBreakdownViewer } from "../CostBreakdownViewer";
import { ConfigInfoMessage } from "../ConfigInfoMessage";
import { VectorStoreViewer } from "../VectorStoreViewer";
@ -68,6 +69,10 @@ export function LogDetailContent({ logEntry, onOpenSettings, isLoadingDetails =
const totalMaskedEntities = calculateTotalMaskedEntities(guardrailEntries);
const primaryGuardrailLabel = getGuardrailLabel(guardrailEntries);
// LLM Judge data
const evalInfo = metadata?.eval_information;
const hasEvalData = evalInfo != null;
// Vector store data
const hasVectorStoreData = checkHasVectorStoreData(metadata);
@ -190,6 +195,9 @@ export function LogDetailContent({ logEntry, onOpenSettings, isLoadingDetails =
</div>
)}
{/* LLM Judge Results */}
{hasEvalData && <EvalViewer data={evalInfo} />}
{/* Vector Store Data */}
{hasVectorStoreData && <VectorStoreViewer data={metadata.vector_store_request_metadata} />}