@orq-ai/node 3.9.2 → 3.9.4
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/README.md +5 -2
- package/bin/mcp-server.js +144 -144
- package/bin/mcp-server.js.map +31 -31
- package/docs/sdks/knowledge/README.md +0 -87
- package/docs/sdks/knowledgebases/README.md +94 -0
- package/funcs/{knowledgeChunkText.d.ts → knowledgeBasesChunkText.d.ts} +3 -3
- package/funcs/knowledgeBasesChunkText.d.ts.map +1 -0
- package/funcs/{knowledgeChunkText.js → knowledgeBasesChunkText.js} +4 -4
- package/funcs/knowledgeBasesChunkText.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +3 -3
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/{knowledgeChunkText.d.ts → knowledgeBasesChunkText.d.ts} +2 -2
- package/mcp-server/tools/knowledgeBasesChunkText.d.ts.map +1 -0
- package/mcp-server/tools/{knowledgeChunkText.js → knowledgeBasesChunkText.js} +7 -7
- package/mcp-server/tools/knowledgeBasesChunkText.js.map +1 -0
- package/models/operations/chunktext.d.ts +24 -24
- package/models/operations/chunktext.d.ts.map +1 -1
- package/models/operations/chunktext.js +38 -39
- package/models/operations/chunktext.js.map +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/README.md +5 -2
- package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -87
- package/packages/orq-rc/docs/sdks/knowledgebases/README.md +94 -0
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +56 -67
- package/packages/orq-rc/package.json +3 -3
- package/packages/orq-rc/src/funcs/{knowledgeChunkText.ts → knowledgeBasesChunkText.ts} +2 -2
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +3 -3
- package/packages/orq-rc/src/mcp-server/tools/{knowledgeChunkText.ts → knowledgeBasesChunkText.ts} +5 -5
- package/packages/orq-rc/src/models/operations/chunktext.ts +63 -57
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/sdk/knowledge.ts +0 -18
- package/packages/orq-rc/src/sdk/knowledgebases.ts +27 -0
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- package/sdk/knowledge.d.ts +0 -7
- package/sdk/knowledge.d.ts.map +1 -1
- package/sdk/knowledge.js +0 -10
- package/sdk/knowledge.js.map +1 -1
- package/sdk/knowledgebases.d.ts +12 -0
- package/sdk/knowledgebases.d.ts.map +1 -0
- package/sdk/knowledgebases.js +22 -0
- package/sdk/knowledgebases.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/{knowledgeChunkText.ts → knowledgeBasesChunkText.ts} +2 -2
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -3
- package/src/mcp-server/tools/{knowledgeChunkText.ts → knowledgeBasesChunkText.ts} +5 -5
- package/src/models/operations/chunktext.ts +63 -57
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
- package/src/sdk/knowledge.ts +0 -18
- package/src/sdk/knowledgebases.ts +27 -0
- package/src/sdk/sdk.ts +6 -0
- package/funcs/knowledgeChunkText.d.ts.map +0 -1
- package/funcs/knowledgeChunkText.js.map +0 -1
- package/mcp-server/tools/knowledgeChunkText.d.ts.map +0 -1
- package/mcp-server/tools/knowledgeChunkText.js.map +0 -1
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# KnowledgeBases
|
|
2
|
+
(*knowledgeBases*)
|
|
3
|
+
|
|
4
|
+
## Overview
|
|
5
|
+
|
|
6
|
+
### Available Operations
|
|
7
|
+
|
|
8
|
+
* [chunkText](#chunktext) - Chunk text
|
|
9
|
+
|
|
10
|
+
## chunkText
|
|
11
|
+
|
|
12
|
+
Split large text documents into smaller, manageable chunks using different chunking strategies optimized for RAG (Retrieval-Augmented Generation) workflows. This endpoint supports multiple chunking algorithms including token-based, sentence-based, recursive, semantic, and specialized strategies.
|
|
13
|
+
|
|
14
|
+
### Example Usage
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { Orq } from "@orq-ai/node";
|
|
18
|
+
|
|
19
|
+
const orq = new Orq({
|
|
20
|
+
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
async function run() {
|
|
24
|
+
const result = await orq.knowledgeBases.chunkText({
|
|
25
|
+
text: "The quick brown fox jumps over the lazy dog. This is a sample text that will be chunked into smaller pieces. Each chunk will maintain context while respecting the maximum chunk size.",
|
|
26
|
+
metadata: true,
|
|
27
|
+
strategy: "semantic",
|
|
28
|
+
chunkSize: 256,
|
|
29
|
+
threshold: 0.8,
|
|
30
|
+
embeddingModel: "openai/text-embedding-3-small",
|
|
31
|
+
mode: "window",
|
|
32
|
+
similarityWindow: 1,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
console.log(result);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
run();
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Standalone function
|
|
42
|
+
|
|
43
|
+
The standalone function version of this method:
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
import { OrqCore } from "@orq-ai/node/core.js";
|
|
47
|
+
import { knowledgeBasesChunkText } from "@orq-ai/node/funcs/knowledgeBasesChunkText.js";
|
|
48
|
+
|
|
49
|
+
// Use `OrqCore` for best tree-shaking performance.
|
|
50
|
+
// You can create one instance of it to use across an application.
|
|
51
|
+
const orq = new OrqCore({
|
|
52
|
+
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
async function run() {
|
|
56
|
+
const res = await knowledgeBasesChunkText(orq, {
|
|
57
|
+
text: "The quick brown fox jumps over the lazy dog. This is a sample text that will be chunked into smaller pieces. Each chunk will maintain context while respecting the maximum chunk size.",
|
|
58
|
+
metadata: true,
|
|
59
|
+
strategy: "semantic",
|
|
60
|
+
chunkSize: 256,
|
|
61
|
+
threshold: 0.8,
|
|
62
|
+
embeddingModel: "openai/text-embedding-3-small",
|
|
63
|
+
mode: "window",
|
|
64
|
+
similarityWindow: 1,
|
|
65
|
+
});
|
|
66
|
+
if (res.ok) {
|
|
67
|
+
const { value: result } = res;
|
|
68
|
+
console.log(result);
|
|
69
|
+
} else {
|
|
70
|
+
console.log("knowledgeBasesChunkText failed:", res.error);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
run();
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Parameters
|
|
78
|
+
|
|
79
|
+
| Parameter | Type | Required | Description |
|
|
80
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
81
|
+
| `request` | [operations.ChunkTextChunkingRequest](../../models/operations/chunktextchunkingrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
82
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
83
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
84
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
85
|
+
|
|
86
|
+
### Response
|
|
87
|
+
|
|
88
|
+
**Promise\<[operations.ChunkTextResponseBody](../../models/operations/chunktextresponsebody.md)\>**
|
|
89
|
+
|
|
90
|
+
### Errors
|
|
91
|
+
|
|
92
|
+
| Error Type | Status Code | Content Type |
|
|
93
|
+
| --------------- | --------------- | --------------- |
|
|
94
|
+
| errors.APIError | 4XX, 5XX | \*/\* |
|
package/packages/orq-rc/jsr.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orq-ai/node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0-rc.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@orq-ai/node",
|
|
9
|
-
"version": "3.
|
|
9
|
+
"version": "3.10.0-rc.0",
|
|
10
10
|
"bin": {
|
|
11
11
|
"mcp": "bin/mcp-server.js"
|
|
12
12
|
},
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
|
|
16
16
|
"@stricli/core": "^1.1.1",
|
|
17
17
|
"@types/express": "^4.17.21",
|
|
18
|
-
"bun": "
|
|
19
|
-
"bun-types": "
|
|
18
|
+
"bun": "1.2.17",
|
|
19
|
+
"bun-types": "1.2.17",
|
|
20
20
|
"eslint": "^9.19.0",
|
|
21
21
|
"express": "^4.21.2",
|
|
22
22
|
"globals": "^15.14.0",
|
|
@@ -332,9 +332,9 @@
|
|
|
332
332
|
}
|
|
333
333
|
},
|
|
334
334
|
"node_modules/@oven/bun-darwin-aarch64": {
|
|
335
|
-
"version": "1.2.
|
|
336
|
-
"resolved": "https://registry.npmjs.org/@oven/bun-darwin-aarch64/-/bun-darwin-aarch64-1.2.
|
|
337
|
-
"integrity": "sha512-
|
|
335
|
+
"version": "1.2.17",
|
|
336
|
+
"resolved": "https://registry.npmjs.org/@oven/bun-darwin-aarch64/-/bun-darwin-aarch64-1.2.17.tgz",
|
|
337
|
+
"integrity": "sha512-66Xjz3NZXUUWKZJPvWKuwEkaqMZpir1Gm4SbhbB2iiRSSTW8jqwdkSb9RhgTCDt5OnSPd3+Cq0WsP/T5ExJbhA==",
|
|
338
338
|
"cpu": [
|
|
339
339
|
"arm64"
|
|
340
340
|
],
|
|
@@ -346,9 +346,9 @@
|
|
|
346
346
|
]
|
|
347
347
|
},
|
|
348
348
|
"node_modules/@oven/bun-darwin-x64": {
|
|
349
|
-
"version": "1.2.
|
|
350
|
-
"resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64/-/bun-darwin-x64-1.2.
|
|
351
|
-
"integrity": "sha512-
|
|
349
|
+
"version": "1.2.17",
|
|
350
|
+
"resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64/-/bun-darwin-x64-1.2.17.tgz",
|
|
351
|
+
"integrity": "sha512-OMJMHpcpBlWcVnWfSQ6x+8fF7HpkQLqBfoIvzxgUjIZZvj2d8K46XX4N/h62RglDEinRC9VDGxt24vwvlk5tTw==",
|
|
352
352
|
"cpu": [
|
|
353
353
|
"x64"
|
|
354
354
|
],
|
|
@@ -360,9 +360,9 @@
|
|
|
360
360
|
]
|
|
361
361
|
},
|
|
362
362
|
"node_modules/@oven/bun-darwin-x64-baseline": {
|
|
363
|
-
"version": "1.2.
|
|
364
|
-
"resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64-baseline/-/bun-darwin-x64-baseline-1.2.
|
|
365
|
-
"integrity": "sha512-
|
|
363
|
+
"version": "1.2.17",
|
|
364
|
+
"resolved": "https://registry.npmjs.org/@oven/bun-darwin-x64-baseline/-/bun-darwin-x64-baseline-1.2.17.tgz",
|
|
365
|
+
"integrity": "sha512-VSIctl90tV8yg1LRMvPg/8LgUzl55Q7Jcxe+u6PfuvLQIJOTIPbNn7HtRpJg7MGc3+qyztB5KDd70xC7qI2yEg==",
|
|
366
366
|
"cpu": [
|
|
367
367
|
"x64"
|
|
368
368
|
],
|
|
@@ -374,9 +374,9 @@
|
|
|
374
374
|
]
|
|
375
375
|
},
|
|
376
376
|
"node_modules/@oven/bun-linux-aarch64": {
|
|
377
|
-
"version": "1.2.
|
|
378
|
-
"resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64/-/bun-linux-aarch64-1.2.
|
|
379
|
-
"integrity": "sha512-
|
|
377
|
+
"version": "1.2.17",
|
|
378
|
+
"resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64/-/bun-linux-aarch64-1.2.17.tgz",
|
|
379
|
+
"integrity": "sha512-KPoMqaibCXcSv+VZ3uMqKUNZqMxE6Hho1be6+laolYGOIJxJTMnZPfmKfIlQmnnW3vLlm3g2Rm8pPPC7doSHWg==",
|
|
380
380
|
"cpu": [
|
|
381
381
|
"arm64"
|
|
382
382
|
],
|
|
@@ -388,9 +388,9 @@
|
|
|
388
388
|
]
|
|
389
389
|
},
|
|
390
390
|
"node_modules/@oven/bun-linux-aarch64-musl": {
|
|
391
|
-
"version": "1.2.
|
|
392
|
-
"resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64-musl/-/bun-linux-aarch64-musl-1.2.
|
|
393
|
-
"integrity": "sha512-
|
|
391
|
+
"version": "1.2.17",
|
|
392
|
+
"resolved": "https://registry.npmjs.org/@oven/bun-linux-aarch64-musl/-/bun-linux-aarch64-musl-1.2.17.tgz",
|
|
393
|
+
"integrity": "sha512-PH+hUV+I6DGD1VRHdAIAKEAOed+GSdvn6S1b3qqX27/VuHBU781V+hzt+6DBlcWBHYLw8PIg9sfIdNp485gQmw==",
|
|
394
394
|
"cpu": [
|
|
395
395
|
"aarch64"
|
|
396
396
|
],
|
|
@@ -402,9 +402,9 @@
|
|
|
402
402
|
]
|
|
403
403
|
},
|
|
404
404
|
"node_modules/@oven/bun-linux-x64": {
|
|
405
|
-
"version": "1.2.
|
|
406
|
-
"resolved": "https://registry.npmjs.org/@oven/bun-linux-x64/-/bun-linux-x64-1.2.
|
|
407
|
-
"integrity": "sha512-
|
|
405
|
+
"version": "1.2.17",
|
|
406
|
+
"resolved": "https://registry.npmjs.org/@oven/bun-linux-x64/-/bun-linux-x64-1.2.17.tgz",
|
|
407
|
+
"integrity": "sha512-BfySnrTxp7D9hVUi9JEpviJl8ndsuESiRiQKTzgmdTLrMjUxP4SwrwMtYt6R9X20n9rREG6a47C0IyQMhbwG/g==",
|
|
408
408
|
"cpu": [
|
|
409
409
|
"x64"
|
|
410
410
|
],
|
|
@@ -416,9 +416,9 @@
|
|
|
416
416
|
]
|
|
417
417
|
},
|
|
418
418
|
"node_modules/@oven/bun-linux-x64-baseline": {
|
|
419
|
-
"version": "1.2.
|
|
420
|
-
"resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-baseline/-/bun-linux-x64-baseline-1.2.
|
|
421
|
-
"integrity": "sha512-
|
|
419
|
+
"version": "1.2.17",
|
|
420
|
+
"resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-baseline/-/bun-linux-x64-baseline-1.2.17.tgz",
|
|
421
|
+
"integrity": "sha512-IrnFMUwYWxoKICQgK8ZlJ6rI/HU2gITFNEW0MIOPIcuT0s3j0/33631M9EzYDoL4NuLQPks6569JDvSHEVqdeA==",
|
|
422
422
|
"cpu": [
|
|
423
423
|
"x64"
|
|
424
424
|
],
|
|
@@ -430,9 +430,9 @@
|
|
|
430
430
|
]
|
|
431
431
|
},
|
|
432
432
|
"node_modules/@oven/bun-linux-x64-musl": {
|
|
433
|
-
"version": "1.2.
|
|
434
|
-
"resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl/-/bun-linux-x64-musl-1.2.
|
|
435
|
-
"integrity": "sha512-
|
|
433
|
+
"version": "1.2.17",
|
|
434
|
+
"resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl/-/bun-linux-x64-musl-1.2.17.tgz",
|
|
435
|
+
"integrity": "sha512-fW9qn/WqO131/qSIkIPW8zN+thQnYUWa/k98EWubLG87htKSPh1v023E5ikKb7WlUv4Yb6UlE/z4NmMYKffmAg==",
|
|
436
436
|
"cpu": [
|
|
437
437
|
"x64"
|
|
438
438
|
],
|
|
@@ -444,9 +444,9 @@
|
|
|
444
444
|
]
|
|
445
445
|
},
|
|
446
446
|
"node_modules/@oven/bun-linux-x64-musl-baseline": {
|
|
447
|
-
"version": "1.2.
|
|
448
|
-
"resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl-baseline/-/bun-linux-x64-musl-baseline-1.2.
|
|
449
|
-
"integrity": "sha512-
|
|
447
|
+
"version": "1.2.17",
|
|
448
|
+
"resolved": "https://registry.npmjs.org/@oven/bun-linux-x64-musl-baseline/-/bun-linux-x64-musl-baseline-1.2.17.tgz",
|
|
449
|
+
"integrity": "sha512-YE5wQ/YA79BykMLhuwgdoF8Yjj5dRipD8dwmXs8n7gzR+/L9tL7Q69NQgskW2KkAalmWPoGAv3TV0IwbU+1dFw==",
|
|
450
450
|
"cpu": [
|
|
451
451
|
"x64"
|
|
452
452
|
],
|
|
@@ -458,9 +458,9 @@
|
|
|
458
458
|
]
|
|
459
459
|
},
|
|
460
460
|
"node_modules/@oven/bun-windows-x64": {
|
|
461
|
-
"version": "1.2.
|
|
462
|
-
"resolved": "https://registry.npmjs.org/@oven/bun-windows-x64/-/bun-windows-x64-1.2.
|
|
463
|
-
"integrity": "sha512-
|
|
461
|
+
"version": "1.2.17",
|
|
462
|
+
"resolved": "https://registry.npmjs.org/@oven/bun-windows-x64/-/bun-windows-x64-1.2.17.tgz",
|
|
463
|
+
"integrity": "sha512-GJUg1oA59DWH6eyV8uccpgfTEVxjmgfTWQCOl2ySMXR3IfRoFwS4aQfpjcVzNmEZrv8eYt+yMuw1K7aNcWTTIg==",
|
|
464
464
|
"cpu": [
|
|
465
465
|
"x64"
|
|
466
466
|
],
|
|
@@ -472,9 +472,9 @@
|
|
|
472
472
|
]
|
|
473
473
|
},
|
|
474
474
|
"node_modules/@oven/bun-windows-x64-baseline": {
|
|
475
|
-
"version": "1.2.
|
|
476
|
-
"resolved": "https://registry.npmjs.org/@oven/bun-windows-x64-baseline/-/bun-windows-x64-baseline-1.2.
|
|
477
|
-
"integrity": "sha512-
|
|
475
|
+
"version": "1.2.17",
|
|
476
|
+
"resolved": "https://registry.npmjs.org/@oven/bun-windows-x64-baseline/-/bun-windows-x64-baseline-1.2.17.tgz",
|
|
477
|
+
"integrity": "sha512-aVkq4l1yZ9VKfBOtZ2HEj0OCU5kUe3Fx6LbAG6oY6OglWVYj051i3RGaE2OdR4L4F2jDyxzfGYRTM/qs8nU5qA==",
|
|
478
478
|
"cpu": [
|
|
479
479
|
"x64"
|
|
480
480
|
],
|
|
@@ -614,16 +614,6 @@
|
|
|
614
614
|
"@types/send": "*"
|
|
615
615
|
}
|
|
616
616
|
},
|
|
617
|
-
"node_modules/@types/ws": {
|
|
618
|
-
"version": "8.5.14",
|
|
619
|
-
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.14.tgz",
|
|
620
|
-
"integrity": "sha512-bd/YFLW+URhBzMXurx7lWByOu+xzU9+kb3RboOteXYDfW+tr+JZa99OyNmPINEGB/ahzKrEuc8rcv4gnpJmxTw==",
|
|
621
|
-
"dev": true,
|
|
622
|
-
"license": "MIT",
|
|
623
|
-
"dependencies": {
|
|
624
|
-
"@types/node": "*"
|
|
625
|
-
}
|
|
626
|
-
},
|
|
627
617
|
"node_modules/@typescript-eslint/type-utils": {
|
|
628
618
|
"version": "8.22.0",
|
|
629
619
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.22.0.tgz",
|
|
@@ -1033,9 +1023,9 @@
|
|
|
1033
1023
|
}
|
|
1034
1024
|
},
|
|
1035
1025
|
"node_modules/bun": {
|
|
1036
|
-
"version": "1.2.
|
|
1037
|
-
"resolved": "https://registry.npmjs.org/bun/-/bun-1.2.
|
|
1038
|
-
"integrity": "sha512-
|
|
1026
|
+
"version": "1.2.17",
|
|
1027
|
+
"resolved": "https://registry.npmjs.org/bun/-/bun-1.2.17.tgz",
|
|
1028
|
+
"integrity": "sha512-lrUZTWS24eVy6v+Eph8VTwqFPcG7/XQ0rLBQEMNoQs2Vd7ctVdMGAzJKKGZRUQH+rgkD8rBeHGIVoWxX4vJLCA==",
|
|
1039
1029
|
"cpu": [
|
|
1040
1030
|
"arm64",
|
|
1041
1031
|
"x64",
|
|
@@ -1051,31 +1041,30 @@
|
|
|
1051
1041
|
],
|
|
1052
1042
|
"bin": {
|
|
1053
1043
|
"bun": "bin/bun.exe",
|
|
1054
|
-
"bunx": "bin/
|
|
1044
|
+
"bunx": "bin/bunx.exe"
|
|
1055
1045
|
},
|
|
1056
1046
|
"optionalDependencies": {
|
|
1057
|
-
"@oven/bun-darwin-aarch64": "1.2.
|
|
1058
|
-
"@oven/bun-darwin-x64": "1.2.
|
|
1059
|
-
"@oven/bun-darwin-x64-baseline": "1.2.
|
|
1060
|
-
"@oven/bun-linux-aarch64": "1.2.
|
|
1061
|
-
"@oven/bun-linux-aarch64-musl": "1.2.
|
|
1062
|
-
"@oven/bun-linux-x64": "1.2.
|
|
1063
|
-
"@oven/bun-linux-x64-baseline": "1.2.
|
|
1064
|
-
"@oven/bun-linux-x64-musl": "1.2.
|
|
1065
|
-
"@oven/bun-linux-x64-musl-baseline": "1.2.
|
|
1066
|
-
"@oven/bun-windows-x64": "1.2.
|
|
1067
|
-
"@oven/bun-windows-x64-baseline": "1.2.
|
|
1047
|
+
"@oven/bun-darwin-aarch64": "1.2.17",
|
|
1048
|
+
"@oven/bun-darwin-x64": "1.2.17",
|
|
1049
|
+
"@oven/bun-darwin-x64-baseline": "1.2.17",
|
|
1050
|
+
"@oven/bun-linux-aarch64": "1.2.17",
|
|
1051
|
+
"@oven/bun-linux-aarch64-musl": "1.2.17",
|
|
1052
|
+
"@oven/bun-linux-x64": "1.2.17",
|
|
1053
|
+
"@oven/bun-linux-x64-baseline": "1.2.17",
|
|
1054
|
+
"@oven/bun-linux-x64-musl": "1.2.17",
|
|
1055
|
+
"@oven/bun-linux-x64-musl-baseline": "1.2.17",
|
|
1056
|
+
"@oven/bun-windows-x64": "1.2.17",
|
|
1057
|
+
"@oven/bun-windows-x64-baseline": "1.2.17"
|
|
1068
1058
|
}
|
|
1069
1059
|
},
|
|
1070
1060
|
"node_modules/bun-types": {
|
|
1071
|
-
"version": "1.2.
|
|
1072
|
-
"resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.2.
|
|
1073
|
-
"integrity": "sha512-
|
|
1061
|
+
"version": "1.2.17",
|
|
1062
|
+
"resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.2.17.tgz",
|
|
1063
|
+
"integrity": "sha512-ElC7ItwT3SCQwYZDYoAH+q6KT4Fxjl8DtZ6qDulUFBmXA8YB4xo+l54J9ZJN+k2pphfn9vk7kfubeSd5QfTVJQ==",
|
|
1074
1064
|
"dev": true,
|
|
1075
1065
|
"license": "MIT",
|
|
1076
1066
|
"dependencies": {
|
|
1077
|
-
"@types/node": "*"
|
|
1078
|
-
"@types/ws": "~8.5.10"
|
|
1067
|
+
"@types/node": "*"
|
|
1079
1068
|
}
|
|
1080
1069
|
},
|
|
1081
1070
|
"node_modules/bytes": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orq-ai/node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0-rc.0",
|
|
4
4
|
"author": "Orq",
|
|
5
5
|
"bin": {
|
|
6
6
|
"mcp": "bin/mcp-server.js"
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0",
|
|
31
31
|
"@stricli/core": "^1.1.1",
|
|
32
32
|
"@types/express": "^4.17.21",
|
|
33
|
-
"bun": "
|
|
34
|
-
"bun-types": "
|
|
33
|
+
"bun": "1.2.17",
|
|
34
|
+
"bun-types": "1.2.17",
|
|
35
35
|
"eslint": "^9.19.0",
|
|
36
36
|
"express": "^4.21.2",
|
|
37
37
|
"globals": "^15.14.0",
|
|
@@ -25,12 +25,12 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
25
25
|
import { Result } from "../types/fp.js";
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* Chunk text
|
|
28
|
+
* Chunk text
|
|
29
29
|
*
|
|
30
30
|
* @remarks
|
|
31
31
|
* Split large text documents into smaller, manageable chunks using different chunking strategies optimized for RAG (Retrieval-Augmented Generation) workflows. This endpoint supports multiple chunking algorithms including token-based, sentence-based, recursive, semantic, and specialized strategies.
|
|
32
32
|
*/
|
|
33
|
-
export function
|
|
33
|
+
export function knowledgeBasesChunkText(
|
|
34
34
|
client: OrqCore,
|
|
35
35
|
request: operations.ChunkTextChunkingRequest,
|
|
36
36
|
options?: RequestOptions,
|
|
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "2.0",
|
|
71
|
-
sdkVersion: "3.
|
|
72
|
-
genVersion: "2.
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 3.
|
|
71
|
+
sdkVersion: "3.10.0-rc.0",
|
|
72
|
+
genVersion: "2.648.7",
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 3.10.0-rc.0 2.648.7 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
|
@@ -81,7 +81,7 @@ import { tool$filesCreate } from "./tools/filesCreate.js";
|
|
|
81
81
|
import { tool$filesDelete } from "./tools/filesDelete.js";
|
|
82
82
|
import { tool$filesGet } from "./tools/filesGet.js";
|
|
83
83
|
import { tool$filesList } from "./tools/filesList.js";
|
|
84
|
-
import { tool$
|
|
84
|
+
import { tool$knowledgeBasesChunkText } from "./tools/knowledgeBasesChunkText.js";
|
|
85
85
|
import { tool$knowledgeCreateChunks } from "./tools/knowledgeCreateChunks.js";
|
|
86
86
|
import { tool$knowledgeCreateDatasource } from "./tools/knowledgeCreateDatasource.js";
|
|
87
87
|
import { tool$knowledgeDelete } from "./tools/knowledgeDelete.js";
|
|
@@ -119,7 +119,7 @@ export function createMCPServer(deps: {
|
|
|
119
119
|
}) {
|
|
120
120
|
const server = new McpServer({
|
|
121
121
|
name: "Orq",
|
|
122
|
-
version: "3.
|
|
122
|
+
version: "3.10.0-rc.0",
|
|
123
123
|
});
|
|
124
124
|
|
|
125
125
|
const client = new OrqCore({
|
|
@@ -200,7 +200,7 @@ export function createMCPServer(deps: {
|
|
|
200
200
|
tool(tool$knowledgeUpdateChunk);
|
|
201
201
|
tool(tool$knowledgeDeleteChunk);
|
|
202
202
|
tool(tool$knowledgeRetrieveChunk);
|
|
203
|
-
tool(tool$
|
|
203
|
+
tool(tool$knowledgeBasesChunkText);
|
|
204
204
|
tool(tool$evalsAll);
|
|
205
205
|
tool(tool$evalsCreate);
|
|
206
206
|
tool(tool$evalsUpdate);
|
package/packages/orq-rc/src/mcp-server/tools/{knowledgeChunkText.ts → knowledgeBasesChunkText.ts}
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { knowledgeBasesChunkText } from "../../funcs/knowledgeBasesChunkText.js";
|
|
6
6
|
import * as operations from "../../models/operations/index.js";
|
|
7
7
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
8
|
|
|
@@ -10,14 +10,14 @@ const args = {
|
|
|
10
10
|
request: operations.ChunkTextChunkingRequest$inboundSchema,
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
export const tool$
|
|
14
|
-
name: "knowledge-chunk-text",
|
|
15
|
-
description: `Chunk text
|
|
13
|
+
export const tool$knowledgeBasesChunkText: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "knowledge-bases-chunk-text",
|
|
15
|
+
description: `Chunk text
|
|
16
16
|
|
|
17
17
|
Split large text documents into smaller, manageable chunks using different chunking strategies optimized for RAG (Retrieval-Augmented Generation) workflows. This endpoint supports multiple chunking algorithms including token-based, sentence-based, recursive, semantic, and specialized strategies.`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
|
-
const [result, apiCall] = await
|
|
20
|
+
const [result, apiCall] = await knowledgeBasesChunkText(
|
|
21
21
|
client,
|
|
22
22
|
args.request,
|
|
23
23
|
{ fetchOptions: { signal: ctx.signal } },
|