@retrivora-ai/rag-engine 1.3.7 → 1.3.8

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.
@@ -1705,8 +1705,6 @@ When presenting structured data, statistics, or comparisons, decide if it is bes
1705
1705
  3. dataKeys MUST exactly match the property names in the data objects.
1706
1706
  4. data objects MUST be FLAT (no nested objects or arrays).
1707
1707
  5. DO NOT output naked JSON; it MUST be wrapped in \`\`\`chart ... \`\`\`.
1708
- 6. The UI HAS a built-in charting engine. NEVER provide Python, Plotly, or Matplotlib code.
1709
- 7. NEVER apologize or claim you cannot render charts. Simply use the \`\`\`chart\`\`\` block.
1710
1708
  \`\`\`chart
1711
1709
  {
1712
1710
  "type": "bar" | "line" | "pie",
@@ -2270,8 +2268,6 @@ When presenting structured data, statistics, or comparisons, decide if it is bes
2270
2268
  3. dataKeys MUST exactly match the property names in the data objects.
2271
2269
  4. data objects MUST be FLAT (no nested objects or arrays).
2272
2270
  5. DO NOT output naked JSON; it MUST be wrapped in \`\`\`chart ... \`\`\`.
2273
- 6. The UI HAS a built-in charting engine. NEVER provide Python, Plotly, or Matplotlib code.
2274
- 7. NEVER apologize or claim you cannot render charts. Simply use the \`\`\`chart\`\`\` block.
2275
2271
  \`\`\`chart
2276
2272
  {
2277
2273
  "type": "bar" | "line" | "pie",
@@ -3274,8 +3274,6 @@ When presenting structured data, statistics, or comparisons, decide if it is bes
3274
3274
  3. dataKeys MUST exactly match the property names in the data objects.
3275
3275
  4. data objects MUST be FLAT (no nested objects or arrays).
3276
3276
  5. DO NOT output naked JSON; it MUST be wrapped in \`\`\`chart ... \`\`\`.
3277
- 6. The UI HAS a built-in charting engine. NEVER provide Python, Plotly, or Matplotlib code.
3278
- 7. NEVER apologize or claim you cannot render charts. Simply use the \`\`\`chart\`\`\` block.
3279
3277
  \`\`\`chart
3280
3278
  {
3281
3279
  "type": "bar" | "line" | "pie",
@@ -3833,8 +3831,6 @@ When presenting structured data, statistics, or comparisons, decide if it is bes
3833
3831
  3. dataKeys MUST exactly match the property names in the data objects.
3834
3832
  4. data objects MUST be FLAT (no nested objects or arrays).
3835
3833
  5. DO NOT output naked JSON; it MUST be wrapped in \`\`\`chart ... \`\`\`.
3836
- 6. The UI HAS a built-in charting engine. NEVER provide Python, Plotly, or Matplotlib code.
3837
- 7. NEVER apologize or claim you cannot render charts. Simply use the \`\`\`chart\`\`\` block.
3838
3834
  \`\`\`chart
3839
3835
  {
3840
3836
  "type": "bar" | "line" | "pie",
@@ -9,7 +9,7 @@ import {
9
9
  sseFrame,
10
10
  sseMetaFrame,
11
11
  sseTextFrame
12
- } from "../chunk-NVXFI7HX.mjs";
12
+ } from "../chunk-FQ7OYZLF.mjs";
13
13
  import "../chunk-YLTMFW4M.mjs";
14
14
  import "../chunk-X4TOT24V.mjs";
15
15
  export {
package/dist/index.js CHANGED
@@ -320,10 +320,6 @@ function DynamicChart({ config, primaryColor = "#6366f1", accentColor = "#8b5cf6
320
320
  // src/components/MessageBubble.tsx
321
321
  function sanitizeJson(raw) {
322
322
  let s = raw.trim();
323
- const firstOpener = s.search(/[\{\[]/);
324
- if (firstOpener !== -1) {
325
- s = s.substring(firstOpener);
326
- }
327
323
  s = s.replace(
328
324
  /:\s*(-?\d+(?:\.\d+)?)\s*([+\-*/])\s*(-?\d+(?:\.\d+)?)/g,
329
325
  (_, a, op, b) => {
package/dist/index.mjs CHANGED
@@ -283,10 +283,6 @@ function DynamicChart({ config, primaryColor = "#6366f1", accentColor = "#8b5cf6
283
283
  // src/components/MessageBubble.tsx
284
284
  function sanitizeJson(raw) {
285
285
  let s = raw.trim();
286
- const firstOpener = s.search(/[\{\[]/);
287
- if (firstOpener !== -1) {
288
- s = s.substring(firstOpener);
289
- }
290
286
  s = s.replace(
291
287
  /:\s*(-?\d+(?:\.\d+)?)\s*([+\-*/])\s*(-?\d+(?:\.\d+)?)/g,
292
288
  (_, a, op, b) => {
package/dist/server.js CHANGED
@@ -3359,8 +3359,6 @@ When presenting structured data, statistics, or comparisons, decide if it is bes
3359
3359
  3. dataKeys MUST exactly match the property names in the data objects.
3360
3360
  4. data objects MUST be FLAT (no nested objects or arrays).
3361
3361
  5. DO NOT output naked JSON; it MUST be wrapped in \`\`\`chart ... \`\`\`.
3362
- 6. The UI HAS a built-in charting engine. NEVER provide Python, Plotly, or Matplotlib code.
3363
- 7. NEVER apologize or claim you cannot render charts. Simply use the \`\`\`chart\`\`\` block.
3364
3362
  \`\`\`chart
3365
3363
  {
3366
3364
  "type": "bar" | "line" | "pie",
@@ -3924,8 +3922,6 @@ When presenting structured data, statistics, or comparisons, decide if it is bes
3924
3922
  3. dataKeys MUST exactly match the property names in the data objects.
3925
3923
  4. data objects MUST be FLAT (no nested objects or arrays).
3926
3924
  5. DO NOT output naked JSON; it MUST be wrapped in \`\`\`chart ... \`\`\`.
3927
- 6. The UI HAS a built-in charting engine. NEVER provide Python, Plotly, or Matplotlib code.
3928
- 7. NEVER apologize or claim you cannot render charts. Simply use the \`\`\`chart\`\`\` block.
3929
3925
  \`\`\`chart
3930
3926
  {
3931
3927
  "type": "bar" | "line" | "pie",
package/dist/server.mjs CHANGED
@@ -39,7 +39,7 @@ import {
39
39
  sseFrame,
40
40
  sseMetaFrame,
41
41
  sseTextFrame
42
- } from "./chunk-NVXFI7HX.mjs";
42
+ } from "./chunk-FQ7OYZLF.mjs";
43
43
  import "./chunk-YLTMFW4M.mjs";
44
44
  import {
45
45
  PineconeProvider
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@retrivora-ai/rag-engine",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "description": "Retrivora AI is a plug-and-play AI engine for RAG chat experiences — generic vector DB + LLM provider, embeddable or standalone.",
5
5
  "author": "Abhinav Alkuchi",
6
6
  "license": "MIT",
@@ -15,12 +15,6 @@ import { DynamicChart, ChartConfig } from './DynamicChart';
15
15
  function sanitizeJson(raw: string): string {
16
16
  let s = raw.trim();
17
17
 
18
- // 0. Find the first '{' or '[' and trim everything before it (e.g. markdown fences)
19
- const firstOpener = s.search(/[\{\[]/);
20
- if (firstOpener !== -1) {
21
- s = s.substring(firstOpener);
22
- }
23
-
24
18
  // 1. Evaluate simple arithmetic expressions in values e.g. "v": 495 / 1000
25
19
  s = s.replace(
26
20
  /:\s*(-?\d+(?:\.\d+)?)\s*([+\-*/])\s*(-?\d+(?:\.\d+)?)/g,
@@ -59,8 +59,6 @@ export class LangChainAgent {
59
59
  3. dataKeys MUST exactly match the property names in the data objects.
60
60
  4. data objects MUST be FLAT (no nested objects or arrays).
61
61
  5. DO NOT output naked JSON; it MUST be wrapped in \`\`\`chart ... \`\`\`.
62
- 6. The UI HAS a built-in charting engine. NEVER provide Python, Plotly, or Matplotlib code.
63
- 7. NEVER apologize or claim you cannot render charts. Simply use the \`\`\`chart\`\`\` block.
64
62
  \`\`\`chart
65
63
  {
66
64
  "type": "bar" | "line" | "pie",
@@ -109,8 +109,6 @@ export class Pipeline {
109
109
  3. dataKeys MUST exactly match the property names in the data objects.
110
110
  4. data objects MUST be FLAT (no nested objects or arrays).
111
111
  5. DO NOT output naked JSON; it MUST be wrapped in \`\`\`chart ... \`\`\`.
112
- 6. The UI HAS a built-in charting engine. NEVER provide Python, Plotly, or Matplotlib code.
113
- 7. NEVER apologize or claim you cannot render charts. Simply use the \`\`\`chart\`\`\` block.
114
112
  \`\`\`chart
115
113
  {
116
114
  "type": "bar" | "line" | "pie",