@absolutejs/absolute 0.19.0-beta.539 → 0.19.0-beta.540
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 +36 -1
- package/dist/ai/client/index.js.map +3 -3
- package/dist/ai/index.js +38 -1
- package/dist/ai/index.js.map +3 -3
- package/dist/react/ai/index.js +36 -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 +3 -1
- package/dist/svelte/ai/index.js +36 -1
- package/dist/svelte/ai/index.js.map +3 -3
- package/dist/types/ai.d.ts +8 -0
- package/dist/vue/ai/index.js +36 -1
- package/dist/vue/ai/index.js.map +3 -3
- package/package.json +1 -1
package/dist/types/ai.d.ts
CHANGED
|
@@ -1321,6 +1321,14 @@ export type RAGAnswerGroundingHistoryPresentation = {
|
|
|
1321
1321
|
rows: RAGLabelValueRow[];
|
|
1322
1322
|
caseSnapshots: RAGAnswerGroundingCaseSnapshotPresentation[];
|
|
1323
1323
|
};
|
|
1324
|
+
export type RAGComparisonCardPresentation = {
|
|
1325
|
+
id: string;
|
|
1326
|
+
label: string;
|
|
1327
|
+
headline: string;
|
|
1328
|
+
traceSummaryRows: RAGLabelValueRow[];
|
|
1329
|
+
diffLabel: string;
|
|
1330
|
+
diffRows: RAGLabelValueRow[];
|
|
1331
|
+
};
|
|
1324
1332
|
export type RAGEvaluationLeaderboardEntry = {
|
|
1325
1333
|
runId: string;
|
|
1326
1334
|
suiteId: string;
|
package/dist/vue/ai/index.js
CHANGED
|
@@ -2316,6 +2316,19 @@ var formatEvaluationSummary = (response) => `${response.summary.passedCases}/${r
|
|
|
2316
2316
|
var formatGroundingHistorySummaryValue = (response) => `${response.summary.passedCases}/${response.summary.totalCases} pass \xB7 grounded ${response.summary.groundedCases} \xB7 partial ${response.summary.partialCases} \xB7 ungrounded ${response.summary.ungroundedCases} \xB7 resolved citations ${(response.summary.averageResolvedCitationRate * 100).toFixed(1)}% \xB7 citation f1 ${response.summary.averageCitationF1.toFixed(3)}`;
|
|
2317
2317
|
var formatHistoryCaseLabels = (cases) => cases.length > 0 ? cases.map((entry) => entry.label ?? entry.caseId).join(", ") : "none";
|
|
2318
2318
|
var formatGroundingHistoryCaseLabels = (cases) => cases.length > 0 ? cases.map((entry) => entry.label ?? entry.caseId).join(", ") : "none";
|
|
2319
|
+
var formatRerankerComparisonHeadline = (entry) => [
|
|
2320
|
+
entry.label,
|
|
2321
|
+
`passing ${formatEvaluationPassingRate(entry.response.passingRate)}`,
|
|
2322
|
+
`f1 ${entry.response.summary.averageF1.toFixed(3)}`,
|
|
2323
|
+
`latency ${entry.response.summary.averageLatencyMs.toFixed(1)}ms`
|
|
2324
|
+
].join(" \xB7 ");
|
|
2325
|
+
var formatRetrievalComparisonHeadline = (entry) => [
|
|
2326
|
+
entry.label,
|
|
2327
|
+
`mode ${entry.retrievalMode}`,
|
|
2328
|
+
`passing ${formatEvaluationPassingRate(entry.response.passingRate)}`,
|
|
2329
|
+
`f1 ${entry.response.summary.averageF1.toFixed(3)}`,
|
|
2330
|
+
`latency ${entry.response.summary.averageLatencyMs.toFixed(1)}ms`
|
|
2331
|
+
].join(" \xB7 ");
|
|
2319
2332
|
var formatTraceModes = (modes) => modes.length > 0 ? modes.join(" / ") : "n/a";
|
|
2320
2333
|
var formatTraceStageSummary = (stageCounts) => {
|
|
2321
2334
|
const topStages = Object.entries(stageCounts).sort((left, right) => right[1] - left[1]).slice(0, 3);
|
|
@@ -2398,6 +2411,28 @@ var buildRAGComparisonTraceDiffRows = (entry, leader) => {
|
|
|
2398
2411
|
}
|
|
2399
2412
|
return rows;
|
|
2400
2413
|
};
|
|
2414
|
+
var buildRAGRetrievalComparisonCardPresentations = (comparison) => {
|
|
2415
|
+
const leader = comparison.entries[0];
|
|
2416
|
+
return comparison.entries.map((entry) => ({
|
|
2417
|
+
diffLabel: leader?.label ?? "Leader",
|
|
2418
|
+
diffRows: buildRAGComparisonTraceDiffRows(entry, leader),
|
|
2419
|
+
headline: formatRetrievalComparisonHeadline(entry),
|
|
2420
|
+
id: entry.retrievalId,
|
|
2421
|
+
label: entry.label,
|
|
2422
|
+
traceSummaryRows: buildRAGComparisonTraceSummaryRows(entry)
|
|
2423
|
+
}));
|
|
2424
|
+
};
|
|
2425
|
+
var buildRAGRerankerComparisonCardPresentations = (comparison) => {
|
|
2426
|
+
const leader = comparison.entries[0];
|
|
2427
|
+
return comparison.entries.map((entry) => ({
|
|
2428
|
+
diffLabel: leader?.label ?? "Leader",
|
|
2429
|
+
diffRows: buildRAGComparisonTraceDiffRows(entry, leader),
|
|
2430
|
+
headline: formatRerankerComparisonHeadline(entry),
|
|
2431
|
+
id: entry.rerankerId,
|
|
2432
|
+
label: entry.label,
|
|
2433
|
+
traceSummaryRows: buildRAGComparisonTraceSummaryRows(entry)
|
|
2434
|
+
}));
|
|
2435
|
+
};
|
|
2401
2436
|
var buildRAGEvaluationHistoryRows = (history) => {
|
|
2402
2437
|
if (!history?.latestRun) {
|
|
2403
2438
|
return [
|
|
@@ -3957,5 +3992,5 @@ export {
|
|
|
3957
3992
|
AIStreamKey
|
|
3958
3993
|
};
|
|
3959
3994
|
|
|
3960
|
-
//# debugId=
|
|
3995
|
+
//# debugId=0079F53A8062FF3364756E2164756E21
|
|
3961
3996
|
//# sourceMappingURL=index.js.map
|