@mastra/rag 0.1.5-alpha.1 → 0.1.5-alpha.2
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/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +10 -0
- package/dist/index.js +2 -2
- package/package.json +2 -2
- package/src/document/transformers/token.ts +2 -2
- package/src/graph-rag/index.test.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/rag@0.1.5-alpha.
|
|
2
|
+
> @mastra/rag@0.1.5-alpha.2 build /home/runner/work/mastra/mastra/packages/rag
|
|
3
3
|
> tsup src/index.ts --format esm --experimental-dts --clean --treeshake
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.3.6
|
|
8
8
|
[34mTSC[39m Build start
|
|
9
|
-
[32mTSC[39m ⚡️ Build success in
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 22390ms
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[34mCLI[39m Target: es2022
|
|
12
12
|
Analysis will use the bundled TypeScript version 5.7.3
|
|
13
13
|
[36mWriting package typings: /home/runner/work/mastra/mastra/packages/rag/dist/_tsup-dts-rollup.d.ts[39m
|
|
14
|
-
[32mDTS[39m ⚡️ Build success in
|
|
14
|
+
[32mDTS[39m ⚡️ Build success in 18818ms
|
|
15
15
|
[34mCLI[39m Cleaning output folder
|
|
16
16
|
[34mESM[39m Build start
|
|
17
|
-
[32mESM[39m [1mdist/index.js [22m[32m83.
|
|
18
|
-
[32mESM[39m ⚡️ Build success in
|
|
17
|
+
[32mESM[39m [1mdist/index.js [22m[32m83.23 KB[39m
|
|
18
|
+
[32mESM[39m ⚡️ Build success in 1096ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @mastra/rag
|
|
2
2
|
|
|
3
|
+
## 0.1.5-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [8d94c3e]
|
|
8
|
+
- Updated dependencies [99dcdb5]
|
|
9
|
+
- Updated dependencies [e752340]
|
|
10
|
+
- Updated dependencies [eb91535]
|
|
11
|
+
- @mastra/core@0.4.2-alpha.2
|
|
12
|
+
|
|
3
13
|
## 0.1.5-alpha.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1012,7 +1012,7 @@ var TokenTransformer = class _TokenTransformer extends TextTransformer {
|
|
|
1012
1012
|
super(options);
|
|
1013
1013
|
try {
|
|
1014
1014
|
this.tokenizer = modelName ? encodingForModel(modelName) : getEncoding(encodingName);
|
|
1015
|
-
} catch
|
|
1015
|
+
} catch {
|
|
1016
1016
|
throw new Error("Could not load tiktoken encoding. Please install it with `npm install js-tiktoken`.");
|
|
1017
1017
|
}
|
|
1018
1018
|
this.allowedSpecial = allowedSpecial;
|
|
@@ -1049,7 +1049,7 @@ var TokenTransformer = class _TokenTransformer extends TextTransformer {
|
|
|
1049
1049
|
} else {
|
|
1050
1050
|
tokenizer = getEncoding(encodingName);
|
|
1051
1051
|
}
|
|
1052
|
-
} catch
|
|
1052
|
+
} catch {
|
|
1053
1053
|
throw new Error("Could not load tiktoken encoding. Please install it with `npm install js-tiktoken`.");
|
|
1054
1054
|
}
|
|
1055
1055
|
const tikTokenEncoder = (text) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/rag",
|
|
3
|
-
"version": "0.1.5-alpha.
|
|
3
|
+
"version": "0.1.5-alpha.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"node-html-better-parser": "^1.4.7",
|
|
26
26
|
"pathe": "^2.0.2",
|
|
27
27
|
"zod": "^3.24.1",
|
|
28
|
-
"@mastra/core": "^0.4.2-alpha.
|
|
28
|
+
"@mastra/core": "^0.4.2-alpha.2"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"ai": "^4.0.0"
|
|
@@ -59,7 +59,7 @@ export class TokenTransformer extends TextTransformer {
|
|
|
59
59
|
|
|
60
60
|
try {
|
|
61
61
|
this.tokenizer = modelName ? encodingForModel(modelName) : getEncoding(encodingName);
|
|
62
|
-
} catch
|
|
62
|
+
} catch {
|
|
63
63
|
throw new Error('Could not load tiktoken encoding. ' + 'Please install it with `npm install js-tiktoken`.');
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -115,7 +115,7 @@ export class TokenTransformer extends TextTransformer {
|
|
|
115
115
|
} else {
|
|
116
116
|
tokenizer = getEncoding(encodingName);
|
|
117
117
|
}
|
|
118
|
-
} catch
|
|
118
|
+
} catch {
|
|
119
119
|
throw new Error('Could not load tiktoken encoding. ' + 'Please install it with `npm install js-tiktoken`.');
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { describe, it, expect, vi,
|
|
1
|
+
import { describe, it, expect, vi, beforeEach } from 'vitest';
|
|
2
2
|
|
|
3
3
|
import type { GraphChunk, GraphEdge, GraphEmbedding, GraphNode } from './';
|
|
4
4
|
import { GraphRAG } from './';
|