@absolutejs/absolute 0.19.0-beta.541 → 0.19.0-beta.542
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 +28 -1
- package/dist/ai/client/index.js.map +3 -3
- package/dist/ai/index.js +29 -1
- package/dist/ai/index.js.map +3 -3
- package/dist/angular/index.js +2 -2
- package/dist/angular/index.js.map +1 -1
- package/dist/angular/server.js +2 -2
- package/dist/angular/server.js.map +1 -1
- package/dist/build.js +2 -2
- package/dist/build.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/react/ai/index.js +28 -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 +15 -1
- package/dist/svelte/ai/index.js +28 -1
- package/dist/svelte/ai/index.js.map +3 -3
- package/dist/types/ai.d.ts +5 -0
- package/dist/vue/ai/index.js +28 -1
- package/dist/vue/ai/index.js.map +3 -3
- package/package.json +1 -1
package/dist/types/ai.d.ts
CHANGED
|
@@ -1334,6 +1334,11 @@ export type RAGGroundingProviderCardPresentation = {
|
|
|
1334
1334
|
label: string;
|
|
1335
1335
|
headline: string;
|
|
1336
1336
|
};
|
|
1337
|
+
export type RAGGroundingProviderOverviewPresentation = {
|
|
1338
|
+
winnerLabel: string;
|
|
1339
|
+
winnerSummary: string;
|
|
1340
|
+
rows: RAGLabelValueRow[];
|
|
1341
|
+
};
|
|
1337
1342
|
export type RAGGroundingProviderCaseComparisonPresentation = {
|
|
1338
1343
|
caseId: string;
|
|
1339
1344
|
label: string;
|
package/dist/vue/ai/index.js
CHANGED
|
@@ -2444,6 +2444,33 @@ var buildRAGGroundingProviderCardPresentations = (entries) => entries.map((entry
|
|
|
2444
2444
|
id: entry.providerKey,
|
|
2445
2445
|
label: entry.label
|
|
2446
2446
|
}));
|
|
2447
|
+
var buildRAGGroundingProviderOverviewPresentation = (input) => {
|
|
2448
|
+
const resolveLabel = (key) => input.entries.find((entry) => entry.providerKey === key)?.label ?? key ?? "n/a";
|
|
2449
|
+
const winnerLabel = resolveLabel(input.summary.bestByPassingRate);
|
|
2450
|
+
const winnerEntry = input.entries.find((entry) => entry.providerKey === input.summary.bestByPassingRate);
|
|
2451
|
+
return {
|
|
2452
|
+
rows: [
|
|
2453
|
+
{
|
|
2454
|
+
label: "Best passing rate",
|
|
2455
|
+
value: resolveLabel(input.summary.bestByPassingRate)
|
|
2456
|
+
},
|
|
2457
|
+
{
|
|
2458
|
+
label: "Best citation F1",
|
|
2459
|
+
value: resolveLabel(input.summary.bestByAverageCitationF1)
|
|
2460
|
+
},
|
|
2461
|
+
{
|
|
2462
|
+
label: "Best resolved citations",
|
|
2463
|
+
value: resolveLabel(input.summary.bestByResolvedCitationRate)
|
|
2464
|
+
},
|
|
2465
|
+
{
|
|
2466
|
+
label: "Fastest",
|
|
2467
|
+
value: resolveLabel(input.summary.fastest)
|
|
2468
|
+
}
|
|
2469
|
+
],
|
|
2470
|
+
winnerLabel,
|
|
2471
|
+
winnerSummary: winnerEntry ? `passing ${formatEvaluationPassingRate(winnerEntry.response.passingRate)} \xB7 citation f1 ${winnerEntry.response.summary.averageCitationF1.toFixed(3)} \xB7 resolved ${formatEvaluationPassingRate(winnerEntry.response.summary.averageResolvedCitationRate)}` : "Stored workflow evaluation"
|
|
2472
|
+
};
|
|
2473
|
+
};
|
|
2447
2474
|
var buildRAGGroundingProviderCaseComparisonPresentations = (comparisons) => comparisons.map((comparison) => {
|
|
2448
2475
|
const resolveLabel = (key) => comparison.entries.find((entry) => entry.providerKey === key)?.label ?? key ?? "n/a";
|
|
2449
2476
|
return {
|
|
@@ -4042,5 +4069,5 @@ export {
|
|
|
4042
4069
|
AIStreamKey
|
|
4043
4070
|
};
|
|
4044
4071
|
|
|
4045
|
-
//# debugId=
|
|
4072
|
+
//# debugId=171201D8916FD28364756E2164756E21
|
|
4046
4073
|
//# sourceMappingURL=index.js.map
|