@retrivora-ai/rag-engine 2.6.4 → 2.6.6

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.
@@ -200,6 +200,12 @@ interface RAGConfig {
200
200
  topK?: number;
201
201
  /** Minimum similarity score to include a chunk (0–1) */
202
202
  scoreThreshold?: number;
203
+ abstainThreshold?: number;
204
+ strictGrounding?: boolean;
205
+ enableSemanticCache?: boolean;
206
+ semanticCacheThreshold?: number;
207
+ useParentChild?: boolean;
208
+ aclFilter?: Record<string, unknown>;
203
209
  /** Target chunk size in tokens */
204
210
  chunkSize?: number;
205
211
  /** Overlap between adjacent chunks in tokens */
@@ -263,6 +269,12 @@ interface RetrievalConfig {
263
269
  topK?: number;
264
270
  /** Minimum similarity score to include a retrieved chunk. */
265
271
  scoreThreshold?: number;
272
+ abstainThreshold?: number;
273
+ strictGrounding?: boolean;
274
+ enableSemanticCache?: boolean;
275
+ semanticCacheThreshold?: number;
276
+ useParentChild?: boolean;
277
+ aclFilter?: Record<string, unknown>;
266
278
  /** Whether to rerank retrieved chunks before generation. */
267
279
  useReranking?: boolean;
268
280
  /** Provider-specific retrieval options for future strategies. */
@@ -398,7 +410,14 @@ interface UseRagChatReturn {
398
410
  /** Clear the conversation (and localStorage if persist=true) */
399
411
  clear: () => void;
400
412
  /** Retry the last failed send */
413
+ /** Retry the last failed send */
401
414
  retry: () => Promise<void>;
415
+ /** Dismiss the current error banner */
416
+ clearError: () => void;
417
+ /** Regenerate the latest assistant response */
418
+ regenerate: () => Promise<void>;
419
+ /** Edit a user message and resubmit the conversation from that point */
420
+ editAndResend: (messageId: string, newText: string) => Promise<void>;
402
421
  /** Programmatically set the conversation (e.g. to restore from a DB) */
403
422
  setMessages: React.Dispatch<React.SetStateAction<RagMessage[]>>;
404
423
  /** Abort the current active stream request */
@@ -200,6 +200,12 @@ interface RAGConfig {
200
200
  topK?: number;
201
201
  /** Minimum similarity score to include a chunk (0–1) */
202
202
  scoreThreshold?: number;
203
+ abstainThreshold?: number;
204
+ strictGrounding?: boolean;
205
+ enableSemanticCache?: boolean;
206
+ semanticCacheThreshold?: number;
207
+ useParentChild?: boolean;
208
+ aclFilter?: Record<string, unknown>;
203
209
  /** Target chunk size in tokens */
204
210
  chunkSize?: number;
205
211
  /** Overlap between adjacent chunks in tokens */
@@ -263,6 +269,12 @@ interface RetrievalConfig {
263
269
  topK?: number;
264
270
  /** Minimum similarity score to include a retrieved chunk. */
265
271
  scoreThreshold?: number;
272
+ abstainThreshold?: number;
273
+ strictGrounding?: boolean;
274
+ enableSemanticCache?: boolean;
275
+ semanticCacheThreshold?: number;
276
+ useParentChild?: boolean;
277
+ aclFilter?: Record<string, unknown>;
266
278
  /** Whether to rerank retrieved chunks before generation. */
267
279
  useReranking?: boolean;
268
280
  /** Provider-specific retrieval options for future strategies. */
@@ -398,7 +410,14 @@ interface UseRagChatReturn {
398
410
  /** Clear the conversation (and localStorage if persist=true) */
399
411
  clear: () => void;
400
412
  /** Retry the last failed send */
413
+ /** Retry the last failed send */
401
414
  retry: () => Promise<void>;
415
+ /** Dismiss the current error banner */
416
+ clearError: () => void;
417
+ /** Regenerate the latest assistant response */
418
+ regenerate: () => Promise<void>;
419
+ /** Edit a user message and resubmit the conversation from that point */
420
+ editAndResend: (messageId: string, newText: string) => Promise<void>;
402
421
  /** Programmatically set the conversation (e.g. to restore from a DB) */
403
422
  setMessages: React.Dispatch<React.SetStateAction<RagMessage[]>>;
404
423
  /** Abort the current active stream request */
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  PineconeProvider
3
- } from "./chunk-BPIATXJ4.mjs";
4
- import "./chunk-6ZZOZFK6.mjs";
5
- import "./chunk-FMQN2K2D.mjs";
3
+ } from "./chunk-JNPVVOIF.mjs";
4
+ import "./chunk-557UWRCG.mjs";
5
+ import "./chunk-Q4MVJ7NW.mjs";
6
6
  import "./chunk-IMP6FUCY.mjs";
7
7
  import "./chunk-UT6SZZEC.mjs";
8
8
  export {
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-XYBKDJDW.mjs";
6
6
  import {
7
7
  SDK_VERSION
8
- } from "./chunk-FMQN2K2D.mjs";
8
+ } from "./chunk-Q4MVJ7NW.mjs";
9
9
  import {
10
10
  __spreadValues
11
11
  } from "./chunk-UT6SZZEC.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SDK_VERSION
3
- } from "./chunk-FMQN2K2D.mjs";
3
+ } from "./chunk-Q4MVJ7NW.mjs";
4
4
  import {
5
5
  __spreadValues
6
6
  } from "./chunk-UT6SZZEC.mjs";