@retrivora-ai/rag-engine 1.0.0 → 1.0.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.
Files changed (39) hide show
  1. package/dist/{ChromaDBProvider-APQVJ5F7.mjs → ChromaDBProvider-MIDOR4FW.mjs} +2 -2
  2. package/dist/{MilvusProvider-35US67MS.mjs → MilvusProvider-U7SKC27V.mjs} +2 -2
  3. package/dist/{MongoDBProvider-COVYZDP6.mjs → MongoDBProvider-Z6ALOVDN.mjs} +2 -2
  4. package/dist/{PineconeProvider-AWFJQDZL.mjs → PineconeProvider-QZNRKTN2.mjs} +2 -2
  5. package/dist/{PostgreSQLProvider-IEYRJ7XJ.mjs → PostgreSQLProvider-BMOETDZA.mjs} +1 -1
  6. package/dist/{QdrantProvider-M6TQYZRO.mjs → QdrantProvider-YNUNEOZH.mjs} +2 -2
  7. package/dist/{RedisProvider-3G5PBLZ4.mjs → RedisProvider-SR65SCKV.mjs} +2 -2
  8. package/dist/{SimpleGraphProvider-UK7DJW37.mjs → SimpleGraphProvider-SLOXO4M7.mjs} +1 -1
  9. package/dist/{UniversalVectorProvider-FYQ3B2PW.mjs → UniversalVectorProvider-IN67OS56.mjs} +3 -3
  10. package/dist/{WeaviateProvider-ITHO36IL.mjs → WeaviateProvider-5FWDFITI.mjs} +2 -2
  11. package/dist/{chunk-4A47RCG2.mjs → chunk-3DSHW676.mjs} +1 -1
  12. package/dist/{chunk-P4HAQ7KB.mjs → chunk-5W2YWFT3.mjs} +75 -13
  13. package/dist/{chunk-NXUCKY5L.mjs → chunk-5YGUXK7Z.mjs} +1 -1
  14. package/dist/{chunk-7SOSCZGS.mjs → chunk-CD6TSNL4.mjs} +1 -1
  15. package/dist/{chunk-WGSZNY3X.mjs → chunk-CFVEZTBJ.mjs} +1 -1
  16. package/dist/{chunk-U6KHVZLF.mjs → chunk-LR3VMDVK.mjs} +2 -2
  17. package/dist/{chunk-OOQXNLXD.mjs → chunk-M6JSPGAR.mjs} +1 -1
  18. package/dist/{chunk-TYHTZIDP.mjs → chunk-U55XRW3U.mjs} +1 -1
  19. package/dist/{chunk-ZNBKHNJ4.mjs → chunk-VUQJVIJT.mjs} +1 -1
  20. package/dist/{chunk-QMIKLALV.mjs → chunk-X4TOT24V.mjs} +32 -0
  21. package/dist/{chunk-67AJ6SMD.mjs → chunk-YLTMFW4M.mjs} +1 -1
  22. package/dist/handlers/index.d.mts +1 -1
  23. package/dist/handlers/index.d.ts +1 -1
  24. package/dist/handlers/index.js +93 -0
  25. package/dist/handlers/index.mjs +5 -3
  26. package/dist/{index-CrGMwXfO.d.ts → index-B2mutkgp.d.ts} +5 -1
  27. package/dist/{index-v669iV-k.d.mts → index-Bjy0es5a.d.mts} +5 -1
  28. package/dist/index.d.mts +13 -7
  29. package/dist/index.d.ts +13 -7
  30. package/dist/index.js +253 -363
  31. package/dist/index.mjs +243 -353
  32. package/dist/server.d.mts +6 -2
  33. package/dist/server.d.ts +6 -2
  34. package/dist/server.js +42 -0
  35. package/dist/server.mjs +11 -11
  36. package/package.json +1 -1
  37. package/src/core/VectorPlugin.ts +7 -0
  38. package/src/handlers/index.ts +45 -0
  39. package/src/rag/EntityExtractor.ts +3 -0
package/dist/index.d.mts CHANGED
@@ -1,4 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import React$1, { ReactNode } from 'react';
3
2
  import { C as ChatMessage } from './DocumentChunker-C-sCZPhi.mjs';
4
3
  export { a as ChatOptions, b as Chunk, c as ChunkOptions, E as EmbedOptions, I as ILLMProvider } from './DocumentChunker-C-sCZPhi.mjs';
@@ -9,7 +8,7 @@ interface ChatWidgetProps {
9
8
  /** Position of the floating button. Defaults to bottom-right. */
10
9
  position?: 'bottom-right' | 'bottom-left';
11
10
  }
12
- declare function ChatWidget({ position }: ChatWidgetProps): react_jsx_runtime.JSX.Element | null;
11
+ declare function ChatWidget({ position }: ChatWidgetProps): React$1.JSX.Element | null;
13
12
 
14
13
  interface ChatWindowProps {
15
14
  /** Additional className for the wrapper div */
@@ -21,7 +20,7 @@ interface ChatWindowProps {
21
20
  /** Whether to show a close (X) button in the header */
22
21
  showClose?: boolean;
23
22
  }
24
- declare function ChatWindow({ className, style, onClose, showClose }: ChatWindowProps): react_jsx_runtime.JSX.Element;
23
+ declare function ChatWindow({ className, style, onClose, showClose }: ChatWindowProps): React$1.JSX.Element;
25
24
 
26
25
  interface DocumentUploadProps {
27
26
  /** Optional namespace for the upload */
@@ -31,7 +30,7 @@ interface DocumentUploadProps {
31
30
  /** Additional className */
32
31
  className?: string;
33
32
  }
34
- declare function DocumentUpload({ namespace, onUploadComplete, className }: DocumentUploadProps): react_jsx_runtime.JSX.Element;
33
+ declare function DocumentUpload({ namespace, onUploadComplete, className }: DocumentUploadProps): React$1.JSX.Element;
35
34
 
36
35
  interface MessageBubbleProps {
37
36
  message: ChatMessage;
@@ -40,13 +39,20 @@ interface MessageBubbleProps {
40
39
  primaryColor?: string;
41
40
  accentColor?: string;
42
41
  }
43
- declare function MessageBubble({ message, sources, isStreaming, primaryColor, accentColor, }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
42
+ declare function MessageBubble({ message, sources, isStreaming, primaryColor, accentColor, }: MessageBubbleProps): React$1.JSX.Element;
44
43
 
45
44
  interface SourceCardProps {
46
45
  source: VectorMatch;
47
46
  index: number;
48
47
  }
49
- declare function SourceCard({ source, index }: SourceCardProps): react_jsx_runtime.JSX.Element;
48
+ declare function SourceCard({ source, index }: SourceCardProps): React$1.JSX.Element;
49
+
50
+ /**
51
+ * ConfigProvider — React Context that makes RagConfig (UI subset) available
52
+ * to all child components without prop drilling.
53
+ *
54
+ * Only the UI-safe portions of RagConfig are exposed to the client.
55
+ */
50
56
 
51
57
  interface ClientConfig {
52
58
  projectId: string;
@@ -58,7 +64,7 @@ declare function ConfigProvider({ config, children, }: {
58
64
  ui?: Partial<UIConfig>;
59
65
  };
60
66
  children: ReactNode;
61
- }): react_jsx_runtime.JSX.Element;
67
+ }): React$1.JSX.Element;
62
68
  declare function useConfig(): ClientConfig;
63
69
 
64
70
  type MessageRole = 'user' | 'assistant';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
1
  import React$1, { ReactNode } from 'react';
3
2
  import { C as ChatMessage } from './DocumentChunker-C-sCZPhi.js';
4
3
  export { a as ChatOptions, b as Chunk, c as ChunkOptions, E as EmbedOptions, I as ILLMProvider } from './DocumentChunker-C-sCZPhi.js';
@@ -9,7 +8,7 @@ interface ChatWidgetProps {
9
8
  /** Position of the floating button. Defaults to bottom-right. */
10
9
  position?: 'bottom-right' | 'bottom-left';
11
10
  }
12
- declare function ChatWidget({ position }: ChatWidgetProps): react_jsx_runtime.JSX.Element | null;
11
+ declare function ChatWidget({ position }: ChatWidgetProps): React$1.JSX.Element | null;
13
12
 
14
13
  interface ChatWindowProps {
15
14
  /** Additional className for the wrapper div */
@@ -21,7 +20,7 @@ interface ChatWindowProps {
21
20
  /** Whether to show a close (X) button in the header */
22
21
  showClose?: boolean;
23
22
  }
24
- declare function ChatWindow({ className, style, onClose, showClose }: ChatWindowProps): react_jsx_runtime.JSX.Element;
23
+ declare function ChatWindow({ className, style, onClose, showClose }: ChatWindowProps): React$1.JSX.Element;
25
24
 
26
25
  interface DocumentUploadProps {
27
26
  /** Optional namespace for the upload */
@@ -31,7 +30,7 @@ interface DocumentUploadProps {
31
30
  /** Additional className */
32
31
  className?: string;
33
32
  }
34
- declare function DocumentUpload({ namespace, onUploadComplete, className }: DocumentUploadProps): react_jsx_runtime.JSX.Element;
33
+ declare function DocumentUpload({ namespace, onUploadComplete, className }: DocumentUploadProps): React$1.JSX.Element;
35
34
 
36
35
  interface MessageBubbleProps {
37
36
  message: ChatMessage;
@@ -40,13 +39,20 @@ interface MessageBubbleProps {
40
39
  primaryColor?: string;
41
40
  accentColor?: string;
42
41
  }
43
- declare function MessageBubble({ message, sources, isStreaming, primaryColor, accentColor, }: MessageBubbleProps): react_jsx_runtime.JSX.Element;
42
+ declare function MessageBubble({ message, sources, isStreaming, primaryColor, accentColor, }: MessageBubbleProps): React$1.JSX.Element;
44
43
 
45
44
  interface SourceCardProps {
46
45
  source: VectorMatch;
47
46
  index: number;
48
47
  }
49
- declare function SourceCard({ source, index }: SourceCardProps): react_jsx_runtime.JSX.Element;
48
+ declare function SourceCard({ source, index }: SourceCardProps): React$1.JSX.Element;
49
+
50
+ /**
51
+ * ConfigProvider — React Context that makes RagConfig (UI subset) available
52
+ * to all child components without prop drilling.
53
+ *
54
+ * Only the UI-safe portions of RagConfig are exposed to the client.
55
+ */
50
56
 
51
57
  interface ClientConfig {
52
58
  projectId: string;
@@ -58,7 +64,7 @@ declare function ConfigProvider({ config, children, }: {
58
64
  ui?: Partial<UIConfig>;
59
65
  };
60
66
  children: ReactNode;
61
- }): react_jsx_runtime.JSX.Element;
67
+ }): React$1.JSX.Element;
62
68
  declare function useConfig(): ClientConfig;
63
69
 
64
70
  type MessageRole = 'user' | 'assistant';