@absolutejs/absolute 0.19.0-beta.537 → 0.19.0-beta.538
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 +64 -1
- package/dist/ai/client/index.js.map +3 -3
- package/dist/ai/index.js +65 -1
- package/dist/ai/index.js.map +3 -3
- package/dist/react/ai/index.js +64 -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 +64 -1
- package/dist/svelte/ai/index.js.map +3 -3
- package/dist/types/ai.d.ts +7 -0
- package/dist/vue/ai/index.js +64 -1
- package/dist/vue/ai/index.js.map +3 -3
- package/package.json +7 -7
package/dist/ai/index.js
CHANGED
|
@@ -6126,6 +6126,69 @@ var buildRAGAnswerGroundingEvaluationRunDiff = ({
|
|
|
6126
6126
|
unchangedCases
|
|
6127
6127
|
};
|
|
6128
6128
|
};
|
|
6129
|
+
var buildRAGAnswerGroundingCaseSnapshotPresentations = (history) => {
|
|
6130
|
+
if (!history?.caseSnapshots.length) {
|
|
6131
|
+
return [];
|
|
6132
|
+
}
|
|
6133
|
+
return history.caseSnapshots.map((entry) => {
|
|
6134
|
+
const label = entry.label ?? entry.caseId;
|
|
6135
|
+
return {
|
|
6136
|
+
answerChange: entry.answerChange,
|
|
6137
|
+
caseId: entry.caseId,
|
|
6138
|
+
label,
|
|
6139
|
+
rows: [
|
|
6140
|
+
{
|
|
6141
|
+
label: "Query",
|
|
6142
|
+
value: entry.query?.trim().length ? entry.query : "n/a"
|
|
6143
|
+
},
|
|
6144
|
+
{ label: "Answer change", value: entry.answerChange },
|
|
6145
|
+
{ label: "Coverage", value: entry.coverage },
|
|
6146
|
+
{
|
|
6147
|
+
label: "Resolved citations",
|
|
6148
|
+
value: `${entry.resolvedCitationCount}/${entry.citationCount}`
|
|
6149
|
+
},
|
|
6150
|
+
{
|
|
6151
|
+
label: "Resolved citation rate",
|
|
6152
|
+
value: entry.resolvedCitationRate.toFixed(3)
|
|
6153
|
+
},
|
|
6154
|
+
{ label: "Citation F1", value: entry.citationF1.toFixed(3) },
|
|
6155
|
+
{
|
|
6156
|
+
label: "Reference count",
|
|
6157
|
+
value: String(entry.referenceCount)
|
|
6158
|
+
},
|
|
6159
|
+
{
|
|
6160
|
+
label: "Cited IDs",
|
|
6161
|
+
value: entry.citedIds.length > 0 ? entry.citedIds.join(", ") : "none"
|
|
6162
|
+
},
|
|
6163
|
+
{
|
|
6164
|
+
label: "Matched IDs",
|
|
6165
|
+
value: entry.matchedIds.length > 0 ? entry.matchedIds.join(", ") : "none"
|
|
6166
|
+
},
|
|
6167
|
+
{
|
|
6168
|
+
label: "Missing IDs",
|
|
6169
|
+
value: entry.missingIds.length > 0 ? entry.missingIds.join(", ") : "none"
|
|
6170
|
+
},
|
|
6171
|
+
{
|
|
6172
|
+
label: "Extra IDs",
|
|
6173
|
+
value: entry.extraIds.length > 0 ? entry.extraIds.join(", ") : "none"
|
|
6174
|
+
},
|
|
6175
|
+
{
|
|
6176
|
+
label: "Unresolved refs",
|
|
6177
|
+
value: entry.ungroundedReferenceNumbers.length > 0 ? entry.ungroundedReferenceNumbers.join(", ") : "none"
|
|
6178
|
+
},
|
|
6179
|
+
{
|
|
6180
|
+
label: "Answer",
|
|
6181
|
+
value: entry.answer.trim().length > 0 ? entry.answer : "n/a"
|
|
6182
|
+
},
|
|
6183
|
+
{
|
|
6184
|
+
label: "Previous answer",
|
|
6185
|
+
value: entry.previousAnswer && entry.previousAnswer.trim().length > 0 ? entry.previousAnswer : "n/a"
|
|
6186
|
+
}
|
|
6187
|
+
],
|
|
6188
|
+
summary: `${entry.answerChange} \xB7 ${entry.coverage} \xB7 resolved ${entry.resolvedCitationCount}/${entry.citationCount} \xB7 refs ${entry.referenceCount}`
|
|
6189
|
+
};
|
|
6190
|
+
});
|
|
6191
|
+
};
|
|
6129
6192
|
var createRAGFileEvaluationHistoryStore = (path) => ({
|
|
6130
6193
|
listRuns: async ({ limit, suiteId } = {}) => {
|
|
6131
6194
|
let parsed = [];
|
|
@@ -11823,6 +11886,7 @@ export {
|
|
|
11823
11886
|
buildRAGAnswerGroundingEvaluationRunDiff,
|
|
11824
11887
|
buildRAGAnswerGroundingEvaluationResponse,
|
|
11825
11888
|
buildRAGAnswerGroundingEvaluationLeaderboard,
|
|
11889
|
+
buildRAGAnswerGroundingCaseSnapshotPresentations,
|
|
11826
11890
|
buildRAGAnswerGroundingCaseDifficultyRunDiff,
|
|
11827
11891
|
buildRAGAnswerGroundingCaseDifficultyLeaderboard,
|
|
11828
11892
|
applyRAGReranking,
|
|
@@ -11833,5 +11897,5 @@ export {
|
|
|
11833
11897
|
aiChat
|
|
11834
11898
|
};
|
|
11835
11899
|
|
|
11836
|
-
//# debugId=
|
|
11900
|
+
//# debugId=3C741D658CB700B164756E2164756E21
|
|
11837
11901
|
//# sourceMappingURL=index.js.map
|