@absolutejs/rag 0.23.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 +12 -0
- package/RESEARCH.md +33 -0
- package/changelog.json +34 -3
- package/dist/research/index.js +291 -188
- package/dist/research/index.js.map +5 -5
- package/dist/src/research/types.d.ts +32 -0
- package/dist/web-index/index.js +291 -63
- package/dist/web-index/index.js.map +5 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,18 @@ 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
|
+
|
|
15
|
+
## 0.24.0 — 2026-11-03
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- **Bounded review batches with durable unreviewed drafts, fenced host checkpoints, explicit resume and preserved partial verdicts.** (`createResearch`, `ResearchConfig`, `ResearchInput`, `ResearchResult`, `ResearchReviewCheckpoint`)
|
|
20
|
+
|
|
9
21
|
## 0.23.0 — 2026-11-02
|
|
10
22
|
|
|
11
23
|
### Added
|
package/RESEARCH.md
CHANGED
|
@@ -313,3 +313,36 @@ Set `evidenceRepairs: 1` (maximum 2, default 0) to allow a bounded correction af
|
|
|
313
313
|
Collection tasks can set `minimumSupportedFields: { qualificationFacts: 1 }` alongside `requiredFields: ["name", "website"]` to require a minimum number of supported string leaves in an atomic fact array. Unsupported leaves remain rejected; callers must project only supported fields when `data` is null.
|
|
314
314
|
|
|
315
315
|
Budget for each correction's optional retrieval plan, extraction and review, including configured schema repairs. Every model and retrieval operation follows the same admission and settlement path as initial research. Correction is disabled unless explicitly configured.
|
|
316
|
+
|
|
317
|
+
## Durable batched review (0.24)
|
|
318
|
+
|
|
319
|
+
Review now runs in small field batches rather than requiring the complete review
|
|
320
|
+
in one model response. `reviewOutputTokens` defaults to the smaller of the global
|
|
321
|
+
output limit and 2,048; `reviewBatchSize` defaults to 12 and is further bounded to
|
|
322
|
+
one field per 256 output tokens (eight fields at the default review ceiling).
|
|
323
|
+
Price every batch, validation repair and evidence-correction pass separately.
|
|
324
|
+
`limits.fields` bounds work per review attempt; excess fields remain in the draft
|
|
325
|
+
for explicit continuation, rather than invalidating the extraction.
|
|
326
|
+
|
|
327
|
+
`result.draft` is **unreviewed**, never a supported answer. Only `fields` carry
|
|
328
|
+
review verdicts; `data` still requires all fields to pass. `documents` retain
|
|
329
|
+
original text for both search snippets and fetched pages independently of the
|
|
330
|
+
model-facing excerpt allowance.
|
|
331
|
+
|
|
332
|
+
For durable operation, supply `input.onReviewCheckpoint` and await a tenant-bound,
|
|
333
|
+
compare-and-swap write in that callback. The runtime calls it before extraction,
|
|
334
|
+
before each review batch, and after each completed batch. Persistence failure
|
|
335
|
+
stops execution. Reopen trusted stored state with `input.resumeReview` to reuse
|
|
336
|
+
sources, extraction and completed batches. Task/model/batch identity must match.
|
|
337
|
+
Checkpoints and drafts are private host state, never client-supplied proof.
|
|
338
|
+
|
|
339
|
+
A `pending` checkpoint cannot resume: the provider outcome or checkpoint write
|
|
340
|
+
requires reconciliation. Admission denial leaves a safe continuation. A host
|
|
341
|
+
using its own metering may implement `isReviewFailureSettled` only when it can
|
|
342
|
+
prove the failed generation completed and its usage is durably accounted for;
|
|
343
|
+
this hook also applies to extraction failures. It never triggers an automatic
|
|
344
|
+
retry. Package-budget failures remain conservatively pending. `finished` means
|
|
345
|
+
review processing finished, not that every claim was supported. Reopening a
|
|
346
|
+
finished checkpoint performs no provider work. Checkpoints during evidence
|
|
347
|
+
correction remain pending until the new extraction is safely retained, preventing
|
|
348
|
+
replay of uncertain correction calls.
|
package/changelog.json
CHANGED
|
@@ -3,8 +3,37 @@
|
|
|
3
3
|
"name": "@absolutejs/rag",
|
|
4
4
|
"releases": [
|
|
5
5
|
{
|
|
6
|
-
"
|
|
7
|
-
|
|
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
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"changes": [
|
|
21
|
+
{
|
|
22
|
+
"kind": "added",
|
|
23
|
+
"summary": "Bounded review batches with durable unreviewed drafts, fenced host checkpoints, explicit resume and preserved partial verdicts.",
|
|
24
|
+
"symbols": [
|
|
25
|
+
"createResearch",
|
|
26
|
+
"ResearchConfig",
|
|
27
|
+
"ResearchInput",
|
|
28
|
+
"ResearchResult",
|
|
29
|
+
"ResearchReviewCheckpoint"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"date": "2026-11-03",
|
|
34
|
+
"version": "0.24.0"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
8
37
|
"changes": [
|
|
9
38
|
{
|
|
10
39
|
"kind": "added",
|
|
@@ -16,7 +45,9 @@
|
|
|
16
45
|
"ResearchTask"
|
|
17
46
|
]
|
|
18
47
|
}
|
|
19
|
-
]
|
|
48
|
+
],
|
|
49
|
+
"date": "2026-11-02",
|
|
50
|
+
"version": "0.23.0"
|
|
20
51
|
},
|
|
21
52
|
{
|
|
22
53
|
"changes": [
|