@absolutejs/absolute 0.19.0-beta.540 → 0.19.0-beta.541
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 +51 -1
- package/dist/ai/client/index.js.map +3 -3
- package/dist/ai/index.js +53 -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 +51 -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 +28 -1
- package/dist/svelte/ai/index.js +51 -1
- package/dist/svelte/ai/index.js.map +3 -3
- package/dist/types/ai.d.ts +11 -0
- package/dist/vue/ai/index.js +51 -1
- package/dist/vue/ai/index.js.map +3 -3
- package/package.json +1 -1
package/dist/ai/index.js
CHANGED
|
@@ -5956,6 +5956,56 @@ var buildRAGRerankerComparisonCardPresentations = (comparison) => {
|
|
|
5956
5956
|
traceSummaryRows: buildRAGComparisonTraceSummaryRows(entry)
|
|
5957
5957
|
}));
|
|
5958
5958
|
};
|
|
5959
|
+
var buildRAGGroundingProviderCardPresentations = (entries) => entries.map((entry) => ({
|
|
5960
|
+
headline: [
|
|
5961
|
+
entry.label,
|
|
5962
|
+
`passing ${formatEvaluationPassingRate(entry.response.passingRate)}`,
|
|
5963
|
+
`citation f1 ${entry.response.summary.averageCitationF1.toFixed(3)}`,
|
|
5964
|
+
`resolved ${formatEvaluationPassingRate(entry.response.summary.averageResolvedCitationRate)}`,
|
|
5965
|
+
`latency ${entry.elapsedMs.toFixed(1)}ms`
|
|
5966
|
+
].join(" \xB7 "),
|
|
5967
|
+
id: entry.providerKey,
|
|
5968
|
+
label: entry.label
|
|
5969
|
+
}));
|
|
5970
|
+
var buildRAGGroundingProviderCaseComparisonPresentations = (comparisons) => comparisons.map((comparison) => {
|
|
5971
|
+
const resolveLabel = (key) => comparison.entries.find((entry) => entry.providerKey === key)?.label ?? key ?? "n/a";
|
|
5972
|
+
return {
|
|
5973
|
+
caseId: comparison.caseId,
|
|
5974
|
+
label: comparison.label,
|
|
5975
|
+
rows: [
|
|
5976
|
+
{
|
|
5977
|
+
label: "Best grounded",
|
|
5978
|
+
value: resolveLabel(comparison.summary.bestByStatus)
|
|
5979
|
+
},
|
|
5980
|
+
{
|
|
5981
|
+
label: "Best citation F1",
|
|
5982
|
+
value: resolveLabel(comparison.summary.bestByCitationF1)
|
|
5983
|
+
},
|
|
5984
|
+
{
|
|
5985
|
+
label: "Best resolved citations",
|
|
5986
|
+
value: resolveLabel(comparison.summary.bestByResolvedCitationRate)
|
|
5987
|
+
},
|
|
5988
|
+
...comparison.entries.map((entry) => ({
|
|
5989
|
+
label: entry.label,
|
|
5990
|
+
value: [
|
|
5991
|
+
entry.status.toUpperCase(),
|
|
5992
|
+
`coverage ${entry.coverage}`,
|
|
5993
|
+
`f1 ${entry.citationF1.toFixed(3)}`,
|
|
5994
|
+
`resolved ${formatEvaluationPassingRate(entry.resolvedCitationRate)}`,
|
|
5995
|
+
`matched ${entry.matchedIds.join(", ") || "none"}`,
|
|
5996
|
+
`missing ${entry.missingIds.join(", ") || "none"}`,
|
|
5997
|
+
`extra ${entry.extraIds.join(", ") || "none"}`,
|
|
5998
|
+
`answer ${entry.answerExcerpt || "n/a"}`
|
|
5999
|
+
].join(" \xB7 ")
|
|
6000
|
+
}))
|
|
6001
|
+
],
|
|
6002
|
+
summary: [
|
|
6003
|
+
`Best grounded: ${resolveLabel(comparison.summary.bestByStatus)}`,
|
|
6004
|
+
`Best citation F1: ${resolveLabel(comparison.summary.bestByCitationF1)}`,
|
|
6005
|
+
`Best resolved citations: ${resolveLabel(comparison.summary.bestByResolvedCitationRate)}`
|
|
6006
|
+
].join(" \xB7 ")
|
|
6007
|
+
};
|
|
6008
|
+
});
|
|
5959
6009
|
var buildRAGEvaluationHistoryRows = (history) => {
|
|
5960
6010
|
if (!history?.latestRun) {
|
|
5961
6011
|
return [
|
|
@@ -11977,6 +12027,8 @@ export {
|
|
|
11977
12027
|
buildRAGRerankerComparisonCardPresentations,
|
|
11978
12028
|
buildRAGLexicalHaystack,
|
|
11979
12029
|
buildRAGGroundingReferences,
|
|
12030
|
+
buildRAGGroundingProviderCaseComparisonPresentations,
|
|
12031
|
+
buildRAGGroundingProviderCardPresentations,
|
|
11980
12032
|
buildRAGGroundedAnswer,
|
|
11981
12033
|
buildRAGEvaluationRunDiff,
|
|
11982
12034
|
buildRAGEvaluationResponse,
|
|
@@ -12005,5 +12057,5 @@ export {
|
|
|
12005
12057
|
aiChat
|
|
12006
12058
|
};
|
|
12007
12059
|
|
|
12008
|
-
//# debugId=
|
|
12060
|
+
//# debugId=1456B2D1F196B2B664756E2164756E21
|
|
12009
12061
|
//# sourceMappingURL=index.js.map
|