@absolutejs/absolute 0.19.0-beta.608 → 0.19.0-beta.609
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 +8 -2
- package/dist/ai/client/index.js.map +4 -4
- package/dist/ai/client/ui.js +8 -2
- package/dist/ai/client/ui.js.map +4 -4
- package/dist/ai/index.js +8 -2
- package/dist/ai/index.js.map +5 -5
- package/dist/ai/rag/quality.js +8 -2
- package/dist/ai/rag/quality.js.map +3 -3
- package/dist/ai/rag/ui.js +8 -2
- package/dist/ai/rag/ui.js.map +4 -4
- package/dist/ai-client/angular/ai/index.js +7 -1
- package/dist/ai-client/react/ai/index.js +7 -1
- package/dist/ai-client/vue/ai/index.js +7 -1
- package/dist/angular/ai/index.js +8 -2
- package/dist/angular/ai/index.js.map +4 -4
- 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 +8 -2
- package/dist/react/ai/index.js.map +4 -4
- package/dist/svelte/ai/index.js +8 -2
- package/dist/svelte/ai/index.js.map +4 -4
- package/dist/types/ai.d.ts +2 -0
- package/dist/vue/ai/index.js +8 -2
- package/dist/vue/ai/index.js.map +4 -4
- package/package.json +1 -1
package/dist/types/ai.d.ts
CHANGED
package/dist/vue/ai/index.js
CHANGED
|
@@ -388,7 +388,11 @@ var buildGroundingChunkExcerpts = (sources, activeChunkId) => {
|
|
|
388
388
|
const collectText = (chunkIds) => chunkIds.map((chunkId) => chunkMap.get(chunkId)?.text).filter((text) => typeof text === "string").join(`
|
|
389
389
|
|
|
390
390
|
`);
|
|
391
|
-
const orderedWindowIds = [
|
|
391
|
+
const orderedWindowIds = [
|
|
392
|
+
previousChunkId,
|
|
393
|
+
activeSource.chunkId,
|
|
394
|
+
nextChunkId
|
|
395
|
+
].filter((chunkId, index, values) => Boolean(chunkId) && values.indexOf(chunkId) === index);
|
|
392
396
|
return {
|
|
393
397
|
chunkExcerpt: buildExcerpt(activeSource.text, 160),
|
|
394
398
|
sectionExcerpt: buildExcerpt(sectionSources.map((source) => source.text).join(`
|
|
@@ -436,6 +440,8 @@ var buildRAGCitations = (sources) => {
|
|
|
436
440
|
unique.set(key, {
|
|
437
441
|
chunkId: source.chunkId,
|
|
438
442
|
contextLabel: source.labels?.contextLabel ?? buildContextLabel(source.metadata),
|
|
443
|
+
excerpt: selectPreferredExcerpt(buildGroundingChunkExcerpts(sources, source.chunkId), getContextNumber(source.metadata?.sectionChunkCount)) || buildExcerpt(source.text),
|
|
444
|
+
excerpts: buildGroundingChunkExcerpts(sources, source.chunkId),
|
|
439
445
|
key,
|
|
440
446
|
label: buildSourceLabel(source),
|
|
441
447
|
locatorLabel: source.labels?.locatorLabel ?? buildLocatorLabel(source.metadata, source.source, source.title),
|
|
@@ -7813,5 +7819,5 @@ export {
|
|
|
7813
7819
|
AIStreamKey
|
|
7814
7820
|
};
|
|
7815
7821
|
|
|
7816
|
-
//# debugId=
|
|
7822
|
+
//# debugId=5F7005C2A51B20F564756E2164756E21
|
|
7817
7823
|
//# sourceMappingURL=index.js.map
|