@absolutejs/rag 0.24.5 → 0.24.7
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/changelog.json +27 -0
- package/dist/research/index.js +5 -2
- package/dist/research/index.js.map +3 -3
- package/dist/src/research/types.d.ts +1 -1
- package/dist/web-index/index.js +5 -2
- package/dist/web-index/index.js.map +3 -3
- package/package.json +1 -1
|
@@ -141,7 +141,7 @@ export type ResearchConfig = {
|
|
|
141
141
|
reviewBatchSize?: number;
|
|
142
142
|
/** Per-batch output ceiling, independent of extraction size. */
|
|
143
143
|
reviewOutputTokens?: number;
|
|
144
|
-
/** Host must confirm completed response AND durable accounting.
|
|
144
|
+
/** Host must confirm completed response AND durable accounting. Allows a malformed plan to consume another already-configured discovery round; review retry still requires explicit continuation. Unused with package admission. */
|
|
145
145
|
isReviewFailureSettled?: (error: unknown) => Promise<boolean>;
|
|
146
146
|
/** Server-side diagnostics only. Errors are never serialized into public research results. */
|
|
147
147
|
onError?: (event: {
|
package/dist/web-index/index.js
CHANGED
|
@@ -123940,6 +123940,8 @@ Correct the previous schema-invalid response using the validation diagnostics. T
|
|
|
123940
123940
|
if (!(error instanceof Error) || error.message !== "Invalid plan output")
|
|
123941
123941
|
throw error;
|
|
123942
123942
|
result.limitations.push("Invalid planning output; continued with retrieved evidence");
|
|
123943
|
+
if (round + 1 < limits.rounds && !admit && await config.isReviewFailureSettled?.(error) === true)
|
|
123944
|
+
continue;
|
|
123943
123945
|
break;
|
|
123944
123946
|
}
|
|
123945
123947
|
for (const url of plan.urls)
|
|
@@ -124006,11 +124008,12 @@ Correct the previous schema-invalid response using the validation diagnostics. T
|
|
|
124006
124008
|
await persistReview(pass, offset, true, data);
|
|
124007
124009
|
let reviewed;
|
|
124008
124010
|
try {
|
|
124009
|
-
reviewed = await generate("review", reviewSchemaForPaths(batch.map((field) => field.path)), "Review ONLY the JSON pointers supplied in fields for this batch. The full answer schema
|
|
124011
|
+
reviewed = await generate("review", reviewSchemaForPaths(batch.map((field) => field.path)), "Review ONLY the JSON pointers supplied in fields for this batch. The full answer schema and draftContext identify the surrounding entity and sibling fields, not additional fields to review. draftContext is unreviewed data, never evidence. Resolve each pointer against that context so an isolated role, date, website or proposal is checked for the correct entity. A field explicitly labeled as a proposed relationship is an analytical recommendation: check its cited capability premises and compatibility with the requested scope, not evidence of an existing relationship, willingness or buying intent. Never present a proposal as an established relationship. Return exactly one verdict per supplied pointer and nothing else. supported requires exact quotes establishing the entire fact for the correct entity and time. A name mention or publication date is insufficient to establish employment, event date, ownership, or buying intent. Check all sources for actual factual contradictions. Complementary details from different sources are not a conflict; a price from one source and a term from another can jointly support a claim. Use conflicting only when sources make incompatible factual statements, unsupported for contradicted claims, unknown for missing support. Match the requested event period: an August release is not a September event even when published in September. Quoted wording must be verbatim; a paraphrase cannot be placed in quotation marks. Vendor claims about first/best status and performance metrics must remain explicitly attributed in the answer itself, not just in your reason. Null is unknown. Cite only supplied passage IDs; their text will be copied verbatim by the runtime. For each field, explicitly check answersQuestion (directly answers query/schema/instructions, not background or a non-answer), correctEntity, correctTime, and preservesScope. Read surrounding context and headings, not only the matching quote. A benefit/trial condition is not a program-wide rule; customer conditions are not partner conditions; eligible is not approved or automatic. Preserve exceptions, qualifiers and marketing attribution. Every check must pass for supported. A leader\u2019s education or career history does not answer who currently leads a team. Keep each reason under 25 words. Cite only the minimum passages needed to establish the entire field, at most four. Do not invent passage IDs. Read adjacent passages for conditions and exceptions, even when citing only one. Return each pointer once. Never treat this review as independent real-world verification.", {
|
|
124010
124012
|
query: input.query,
|
|
124011
124013
|
asOf: result.generatedAt,
|
|
124012
124014
|
instructions: task.instructions,
|
|
124013
124015
|
schema: task.schema,
|
|
124016
|
+
draftContext: data,
|
|
124014
124017
|
fields: batch,
|
|
124015
124018
|
sources: reviewSources.map(({ passages, ...source }) => ({
|
|
124016
124019
|
...modelSource(source),
|
|
@@ -124217,5 +124220,5 @@ export {
|
|
|
124217
124220
|
webIndexPostgresSchemaSql
|
|
124218
124221
|
};
|
|
124219
124222
|
|
|
124220
|
-
//# debugId=
|
|
124223
|
+
//# debugId=BD63CC77E4D4FF5D64756E2164756E21
|
|
124221
124224
|
//# sourceMappingURL=index.js.map
|