@absolutejs/rag 0.24.0 → 0.24.1
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/CHANGELOG.md +6 -0
- package/changelog.json +14 -0
- package/dist/research/index.js +12 -4
- package/dist/research/index.js.map +3 -3
- package/dist/src/research/types.d.ts +7 -0
- package/dist/web-index/index.js +12 -4
- package/dist/web-index/index.js.map +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,12 @@ This file is generated by `absolute-changelog` from the entries in
|
|
|
6
6
|
`changelog/`. Edit an entry, not this file — and add new ones under
|
|
7
7
|
`changelog/unreleased/`.
|
|
8
8
|
|
|
9
|
+
## 0.24.1 — 2026-11-03
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- **Mark empty extractions complete and retain retrieval cursors across review continuation without repeating searches or reads.** (`createResearch`, `ResearchReviewCheckpoint`)
|
|
14
|
+
|
|
9
15
|
## 0.24.0 — 2026-11-03
|
|
10
16
|
|
|
11
17
|
### Added
|
package/changelog.json
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
"contract": 1,
|
|
3
3
|
"name": "@absolutejs/rag",
|
|
4
4
|
"releases": [
|
|
5
|
+
{
|
|
6
|
+
"changes": [
|
|
7
|
+
{
|
|
8
|
+
"kind": "fixed",
|
|
9
|
+
"summary": "Mark empty extractions complete and retain retrieval cursors across review continuation without repeating searches or reads.",
|
|
10
|
+
"symbols": [
|
|
11
|
+
"createResearch",
|
|
12
|
+
"ResearchReviewCheckpoint"
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"date": "2026-11-03",
|
|
17
|
+
"version": "0.24.1"
|
|
18
|
+
},
|
|
5
19
|
{
|
|
6
20
|
"changes": [
|
|
7
21
|
{
|
package/dist/research/index.js
CHANGED
|
@@ -122319,7 +122319,10 @@ var createResearch = (config) => {
|
|
|
122319
122319
|
pending,
|
|
122320
122320
|
finished,
|
|
122321
122321
|
draft: structuredClone(draft),
|
|
122322
|
-
result: structuredClone(snapshot)
|
|
122322
|
+
result: structuredClone(snapshot),
|
|
122323
|
+
searched: [...queries],
|
|
122324
|
+
read: [...urls],
|
|
122325
|
+
links: [...discoveredLinks.values()]
|
|
122323
122326
|
};
|
|
122324
122327
|
try {
|
|
122325
122328
|
await input.onReviewCheckpoint?.(checkpoint);
|
|
@@ -122432,8 +122435,12 @@ Correct the previous schema-invalid response using the validation diagnostics. T
|
|
|
122432
122435
|
document2.url,
|
|
122433
122436
|
document2.text
|
|
122434
122437
|
]));
|
|
122435
|
-
for (const prior of result.searches)
|
|
122436
|
-
queries.add(prior
|
|
122438
|
+
for (const prior of resumed?.searched ?? result.searches.map((search) => search.query))
|
|
122439
|
+
queries.add(prior);
|
|
122440
|
+
for (const prior of resumed?.read ?? [])
|
|
122441
|
+
urls.add(prior);
|
|
122442
|
+
for (const link of resumed?.links ?? [])
|
|
122443
|
+
discoveredLinks.set(link.url, link);
|
|
122437
122444
|
for (const prior of result.sources)
|
|
122438
122445
|
if (prior.contentFetchedAt)
|
|
122439
122446
|
urls.add(prior.url);
|
|
@@ -122684,6 +122691,7 @@ Correct the previous schema-invalid response using the validation diagnostics. T
|
|
|
122684
122691
|
if (!leaves.length) {
|
|
122685
122692
|
result.data = data;
|
|
122686
122693
|
result.status = result.limitations.length ? "partial" : "empty";
|
|
122694
|
+
await persistReview(pass, 0, false, data, true);
|
|
122687
122695
|
return result;
|
|
122688
122696
|
}
|
|
122689
122697
|
const reviewSources = researchPassages(result.sources);
|
|
@@ -123526,5 +123534,5 @@ export {
|
|
|
123526
123534
|
selectResearchMonitorEvents
|
|
123527
123535
|
};
|
|
123528
123536
|
|
|
123529
|
-
//# debugId=
|
|
123537
|
+
//# debugId=447572534D5D532364756E2164756E21
|
|
123530
123538
|
//# sourceMappingURL=index.js.map
|