@absolutejs/rag 0.22.9 → 0.22.11
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 +16 -0
- package/RESEARCH.md +1 -1
- package/changelog.json +35 -2
- package/dist/research/index.js +782 -27
- package/dist/research/index.js.map +7 -5
- package/dist/src/research/schema.d.ts +2 -0
- package/dist/src/research/types.d.ts +8 -0
- package/dist/web-index/index.js +782 -27
- package/dist/web-index/index.js.map +7 -5
- package/package.json +1 -1
|
@@ -6,3 +6,5 @@ export type ResearchSchema = TSchema | {
|
|
|
6
6
|
};
|
|
7
7
|
export type ResearchStatic<S extends ResearchSchema> = S extends TSchema ? LegacyStatic<S> : Static<S>;
|
|
8
8
|
export declare const checkResearchValue: <S extends ResearchSchema>(schema: S, value: unknown) => value is ResearchStatic<S>;
|
|
9
|
+
/** Schema locations/messages only; never include the invalid document value. */
|
|
10
|
+
export declare const researchValidationDiagnostics: (schema: ResearchSchema, value: unknown) => string;
|
|
@@ -76,6 +76,14 @@ export type ResearchLimits = {
|
|
|
76
76
|
fields: number;
|
|
77
77
|
};
|
|
78
78
|
export type ResearchConfig = {
|
|
79
|
+
/** Extra schema-validation attempts per extract/review, each separately admitted. Default 1; 0 disables repair. Provider/network failures are never retried. */
|
|
80
|
+
validationRepairs?: number;
|
|
81
|
+
/** Server-side diagnostics only. Errors are never serialized into public research results. */
|
|
82
|
+
onError?: (event: {
|
|
83
|
+
runId: string;
|
|
84
|
+
phase: ResearchOperation;
|
|
85
|
+
error: unknown;
|
|
86
|
+
}) => void;
|
|
79
87
|
/** Optional host accounting adapter; defaults to the standard AI generator. */
|
|
80
88
|
generateObject?: typeof import("@absolutejs/ai").generateObjectAI;
|
|
81
89
|
budget?: import("./budget").ResearchBudgetConfig;
|