@absolutejs/absolute 0.19.0-beta.536 → 0.19.0-beta.537
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/client/index.js +59 -1
- package/dist/ai/client/index.js.map +3 -3
- package/dist/ai/index.js +60 -1
- package/dist/ai/index.js.map +3 -3
- package/dist/react/ai/index.js +59 -1
- package/dist/react/ai/index.js.map +3 -3
- package/dist/src/ai/index.d.ts +1 -1
- package/dist/src/ai/rag/index.d.ts +1 -1
- package/dist/src/ai/rag/quality.d.ts +2 -1
- package/dist/svelte/ai/index.js +59 -1
- package/dist/svelte/ai/index.js.map +3 -3
- package/dist/types/ai.d.ts +7 -0
- package/dist/vue/ai/index.js +59 -1
- package/dist/vue/ai/index.js.map +3 -3
- package/package.json +7 -7
package/dist/types/ai.d.ts
CHANGED
|
@@ -1297,6 +1297,13 @@ export type RAGRetrievalTracePresentation = {
|
|
|
1297
1297
|
details: RAGLabelValueRow[];
|
|
1298
1298
|
steps: RAGRetrievalTraceStepPresentation[];
|
|
1299
1299
|
};
|
|
1300
|
+
export type RAGEvaluationCaseTracePresentation = {
|
|
1301
|
+
caseId: string;
|
|
1302
|
+
label: string;
|
|
1303
|
+
summary: string;
|
|
1304
|
+
traceChange: RAGEvaluationCaseTraceSnapshot['traceChange'];
|
|
1305
|
+
rows: RAGLabelValueRow[];
|
|
1306
|
+
};
|
|
1300
1307
|
export type RAGEvaluationLeaderboardEntry = {
|
|
1301
1308
|
runId: string;
|
|
1302
1309
|
suiteId: string;
|
package/dist/vue/ai/index.js
CHANGED
|
@@ -2477,6 +2477,64 @@ var buildRAGEvaluationHistoryRows = (history) => {
|
|
|
2477
2477
|
}
|
|
2478
2478
|
return rows;
|
|
2479
2479
|
};
|
|
2480
|
+
var buildRAGEvaluationCaseTracePresentations = (history) => {
|
|
2481
|
+
if (!history?.caseTraceSnapshots.length) {
|
|
2482
|
+
return [];
|
|
2483
|
+
}
|
|
2484
|
+
return history.caseTraceSnapshots.map((entry) => {
|
|
2485
|
+
const label = entry.label ?? entry.caseId;
|
|
2486
|
+
const currentMode = entry.traceMode ?? "no-trace";
|
|
2487
|
+
const previousMode = entry.previousTraceMode ?? "n/a";
|
|
2488
|
+
const currentVariants = entry.variantQueries.length > 0 ? entry.variantQueries.join(", ") : "none";
|
|
2489
|
+
const previousVariants = entry.previousVariantQueries.length > 0 ? entry.previousVariantQueries.join(", ") : "none";
|
|
2490
|
+
const currentStages = Object.keys(entry.stageCounts).length > 0 ? Object.entries(entry.stageCounts).map(([stage, count]) => `${stage} ${count}`).join(", ") : "none";
|
|
2491
|
+
const previousStages = Object.keys(entry.previousStageCounts).length > 0 ? Object.entries(entry.previousStageCounts).map(([stage, count]) => `${stage} ${count}`).join(", ") : "none";
|
|
2492
|
+
return {
|
|
2493
|
+
caseId: entry.caseId,
|
|
2494
|
+
label,
|
|
2495
|
+
summary: `${entry.traceChange} \xB7 ${previousMode}\u2192${currentMode} \xB7 final ${entry.previousFinalCount ?? 0}\u2192${entry.finalCount}`,
|
|
2496
|
+
traceChange: entry.traceChange,
|
|
2497
|
+
rows: [
|
|
2498
|
+
{ label: "Query", value: entry.query },
|
|
2499
|
+
{ label: "Trace change", value: entry.traceChange },
|
|
2500
|
+
{ label: "Mode", value: `${previousMode}\u2192${currentMode}` },
|
|
2501
|
+
{
|
|
2502
|
+
label: "Transformed query",
|
|
2503
|
+
value: `${entry.previousTransformedQuery?.trim() || "n/a"}\u2192${entry.transformedQuery?.trim() || "n/a"}`
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
label: "Final",
|
|
2507
|
+
value: `${entry.previousFinalCount ?? 0}\u2192${entry.finalCount}`
|
|
2508
|
+
},
|
|
2509
|
+
{
|
|
2510
|
+
label: "Vector",
|
|
2511
|
+
value: `${entry.previousVectorCount ?? 0}\u2192${entry.vectorCount}`
|
|
2512
|
+
},
|
|
2513
|
+
{
|
|
2514
|
+
label: "Lexical",
|
|
2515
|
+
value: `${entry.previousLexicalCount ?? 0}\u2192${entry.lexicalCount}`
|
|
2516
|
+
},
|
|
2517
|
+
{
|
|
2518
|
+
label: "Candidate topK",
|
|
2519
|
+
value: `${entry.previousCandidateTopK ?? 0}\u2192${entry.candidateTopK}`
|
|
2520
|
+
},
|
|
2521
|
+
{
|
|
2522
|
+
label: "Lexical topK",
|
|
2523
|
+
value: `${entry.previousLexicalTopK ?? 0}\u2192${entry.lexicalTopK}`
|
|
2524
|
+
},
|
|
2525
|
+
{
|
|
2526
|
+
label: "Variants",
|
|
2527
|
+
value: `${previousVariants}\u2192${currentVariants}`
|
|
2528
|
+
},
|
|
2529
|
+
{
|
|
2530
|
+
label: "Stages",
|
|
2531
|
+
value: `${previousStages}\u2192${currentStages}`
|
|
2532
|
+
},
|
|
2533
|
+
{ label: "Status", value: entry.status }
|
|
2534
|
+
]
|
|
2535
|
+
};
|
|
2536
|
+
});
|
|
2537
|
+
};
|
|
2480
2538
|
var buildRAGEvaluationRunDiff = ({
|
|
2481
2539
|
current,
|
|
2482
2540
|
previous
|
|
@@ -3768,5 +3826,5 @@ export {
|
|
|
3768
3826
|
AIStreamKey
|
|
3769
3827
|
};
|
|
3770
3828
|
|
|
3771
|
-
//# debugId=
|
|
3829
|
+
//# debugId=AF3F1B40777DBF8964756E2164756E21
|
|
3772
3830
|
//# sourceMappingURL=index.js.map
|