@qvac/sdk 0.2.3-dev.1760967179.fb3630a → 0.2.3-dev.1760967206.fa44856
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.
|
@@ -41,9 +41,10 @@ try {
|
|
|
41
41
|
documents: medicalArticle,
|
|
42
42
|
chunk: true,
|
|
43
43
|
chunkOpts: {
|
|
44
|
-
chunkSize:
|
|
44
|
+
chunkSize: 100,
|
|
45
45
|
chunkOverlap: 10,
|
|
46
46
|
chunkStrategy: "paragraph",
|
|
47
|
+
splitStrategy: "token",
|
|
47
48
|
},
|
|
48
49
|
});
|
|
49
50
|
console.log(`✅ Created ${medicalResult.processed.length} chunks from medical article`);
|
package/dist/schemas/common.d.ts
CHANGED
package/dist/schemas/rag.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ declare const ragSaveEmbeddingsParamsSchema: z.ZodObject<{
|
|
|
25
25
|
paragraph: "paragraph";
|
|
26
26
|
}>>;
|
|
27
27
|
splitStrategy: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
token: "token";
|
|
28
29
|
character: "character";
|
|
29
30
|
word: "word";
|
|
30
31
|
sentence: "sentence";
|
|
@@ -45,6 +46,7 @@ export declare const ragSaveEmbeddingsOperationSchema: z.ZodObject<{
|
|
|
45
46
|
paragraph: "paragraph";
|
|
46
47
|
}>>;
|
|
47
48
|
splitStrategy: z.ZodOptional<z.ZodEnum<{
|
|
49
|
+
token: "token";
|
|
48
50
|
character: "character";
|
|
49
51
|
word: "word";
|
|
50
52
|
sentence: "sentence";
|
|
@@ -95,6 +97,7 @@ export declare const ragRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
95
97
|
paragraph: "paragraph";
|
|
96
98
|
}>>;
|
|
97
99
|
splitStrategy: z.ZodOptional<z.ZodEnum<{
|
|
100
|
+
token: "token";
|
|
98
101
|
character: "character";
|
|
99
102
|
word: "word";
|
|
100
103
|
sentence: "sentence";
|
package/dist/schemas/rag.js
CHANGED
|
@@ -4,7 +4,9 @@ const llmChunkOptsSchema = z.object({
|
|
|
4
4
|
chunkSize: z.number().optional(),
|
|
5
5
|
chunkOverlap: z.number().optional(),
|
|
6
6
|
chunkStrategy: z.enum(["character", "paragraph"]).optional(),
|
|
7
|
-
splitStrategy: z
|
|
7
|
+
splitStrategy: z
|
|
8
|
+
.enum(["character", "word", "token", "sentence", "line"])
|
|
9
|
+
.optional(),
|
|
8
10
|
});
|
|
9
11
|
const ragSaveEmbeddingsResultSchema = z.object({
|
|
10
12
|
status: z.enum(["fulfilled", "rejected"]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qvac/sdk",
|
|
3
|
-
"version": "0.2.3-dev.
|
|
3
|
+
"version": "0.2.3-dev.1760967206.fa44856",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@qvac/error": "^0.1.0",
|
|
60
60
|
"@qvac/langdetect-text": "^0.1.0",
|
|
61
61
|
"@qvac/logging": "^0.1.0",
|
|
62
|
-
"@qvac/rag": "^0.
|
|
62
|
+
"@qvac/rag": "^0.2.0",
|
|
63
63
|
"@qvac/transcription-whispercpp": "^0.1.4",
|
|
64
64
|
"@qvac/translation-nmtcpp": "^0.1.0",
|
|
65
65
|
"fast-safe-stringify": "2.1.1",
|