@naturali/sdk 0.292.3 → 0.293.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.
- package/dist/index.cjs +8 -2
- package/dist/index.d.cts +45 -35
- package/dist/index.d.mts +45 -35
- package/dist/index.mjs +8 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2645,9 +2645,15 @@ var Documents = class {
|
|
|
2645
2645
|
* Parses an already-uploaded file and creates one Document split into one or
|
|
2646
2646
|
* more embedded chunks. The source format is detected from the file's content
|
|
2647
2647
|
* type: PDFs are parsed page-by-page; `text/plain` and `text/markdown` files
|
|
2648
|
-
* are read as a single source.
|
|
2648
|
+
* are read as a single source. Any other type (`image*`, `audio*`, …) is
|
|
2649
|
+
* converted to text by the tool of the project's matching ingestion rule
|
|
2650
|
+
* (`POST /ingestion-rules`); with no matching rule it is refused with
|
|
2651
|
+
* `400 UNSUPPORTED_FILE_TYPE`. How the source is chunked is controlled by
|
|
2649
2652
|
* `chunk_strategy`.
|
|
2650
2653
|
*
|
|
2654
|
+
* Ingestion produces text for retrieval. For a model to read the original
|
|
2655
|
+
* file, send it as a `file` part of a generation instead.
|
|
2656
|
+
*
|
|
2651
2657
|
* A file can only back one Document — a second call with the same `file_id`
|
|
2652
2658
|
* returns `409 FILE_ALREADY_INGESTED`. To re-process an already-ingested file
|
|
2653
2659
|
* (e.g. with a different `chunk_strategy`), use
|
|
@@ -3073,7 +3079,7 @@ var Evaluations = class {
|
|
|
3073
3079
|
*
|
|
3074
3080
|
* Binds an agent under test to a dataset and a list of scorers. The agent and the dataset must belong to the same project as the eval; a cross-project reference is rejected with 400.
|
|
3075
3081
|
*
|
|
3076
|
-
* Scorer config is frozen here rather than read from the agent at run time, so two runs of the same eval are always judged by the same criteria and their comparison measures the agent instead of the config drifting underneath it.
|
|
3082
|
+
* Scorer config is frozen here rather than read from the agent at run time, so two runs of the same eval are always judged by the same criteria and their comparison measures the agent instead of the config drifting underneath it. Every scorer carries a `name`, unique within the eval.
|
|
3077
3083
|
*/
|
|
3078
3084
|
static createEval(options) {
|
|
3079
3085
|
return (options.client ?? client).post({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.293.1",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
41
|
-
"@naturali/api": "0.
|
|
41
|
+
"@naturali/api": "0.293.1",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.10.1",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|