notdiamond 2.0.0-rc19 → 2.0.0-rc20
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/CHANGELOG.md +22 -0
- package/package.json +1 -1
- package/resources/prompt-adaptation.d.mts +21 -3
- package/resources/prompt-adaptation.d.mts.map +1 -1
- package/resources/prompt-adaptation.d.ts +21 -3
- package/resources/prompt-adaptation.d.ts.map +1 -1
- package/resources/prompt-adaptation.js +6 -0
- package/resources/prompt-adaptation.js.map +1 -1
- package/resources/prompt-adaptation.mjs +6 -0
- package/resources/prompt-adaptation.mjs.map +1 -1
- package/src/resources/prompt-adaptation.ts +23 -3
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.0-rc20 (2025-12-08)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v2.0.0-rc19...v2.0.0-rc20](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc19...v2.0.0-rc20)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([84c5066](https://github.com/Not-Diamond/not-diamond-typescript/commit/84c5066bea0f66d3f0a6db873db07c8a8fa5e003))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **mcp:** correct code tool API endpoint ([635c1ae](https://github.com/Not-Diamond/not-diamond-typescript/commit/635c1ae86b78993557e4dd91fd2e413a726dd04c))
|
|
15
|
+
* **mcp:** return correct lines on typescript errors ([4dbe2f4](https://github.com/Not-Diamond/not-diamond-typescript/commit/4dbe2f425ecc39e6dc89e3387754db85643718e4))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Chores
|
|
19
|
+
|
|
20
|
+
* **internal:** codegen related update ([ab51a25](https://github.com/Not-Diamond/not-diamond-typescript/commit/ab51a250692a609e9aa6bfe62392347b577846bc))
|
|
21
|
+
* **internal:** codegen related update ([c396036](https://github.com/Not-Diamond/not-diamond-typescript/commit/c39603681e3efa4ffd7df8dcf881c1a503d5aa2b))
|
|
22
|
+
* **internal:** configure pnpm minimumReleaseAge to 1 day ([b851d00](https://github.com/Not-Diamond/not-diamond-typescript/commit/b851d00a1a464c1771a744ae9cf0fa0ac2d2b112))
|
|
23
|
+
* **internal:** upgrade eslint ([37c2476](https://github.com/Not-Diamond/not-diamond-typescript/commit/37c2476b5fa8ad716f598f8d524f15f18eea9d90))
|
|
24
|
+
|
|
3
25
|
## 2.0.0-rc19 (2025-12-02)
|
|
4
26
|
|
|
5
27
|
Full Changelog: [v2.0.0-rc18...v2.0.0-rc19](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc18...v2.0.0-rc19)
|
package/package.json
CHANGED
|
@@ -29,6 +29,12 @@ export declare class PromptAdaptation extends APIResource {
|
|
|
29
29
|
* **Dataset Requirements:**
|
|
30
30
|
*
|
|
31
31
|
* - Minimum 25 examples in train_goldens (more examples = better adaptation)
|
|
32
|
+
* - **Prototype mode**: Set `prototype_mode: true` to use as few as 3 examples for
|
|
33
|
+
* prototyping
|
|
34
|
+
* - Recommended when you don't have enough data yet to build a proof-of-concept
|
|
35
|
+
* - Note: Performance may be degraded compared to standard mode (25+ examples)
|
|
36
|
+
* - Trade-off: Faster iteration with less data vs. potentially less
|
|
37
|
+
* generalizability
|
|
32
38
|
* - Each example must have fields matching your template placeholders
|
|
33
39
|
* - Supervised evaluation requires 'answer' field in each golden record
|
|
34
40
|
* - Unsupervised evaluation can work without answers
|
|
@@ -369,6 +375,12 @@ export interface PromptAdaptationGetAdaptResultsResponse {
|
|
|
369
375
|
* - Job status for the origin model evaluation
|
|
370
376
|
*/
|
|
371
377
|
origin_model?: PromptAdaptationGetAdaptResultsResponse.OriginModel | null;
|
|
378
|
+
/**
|
|
379
|
+
* Whether this adaptation run was created with prototype mode (3-24 training
|
|
380
|
+
* examples allowed). Prototype mode may have degraded performance compared to
|
|
381
|
+
* standard mode (25+ examples)
|
|
382
|
+
*/
|
|
383
|
+
prototype_mode?: boolean;
|
|
372
384
|
}
|
|
373
385
|
export declare namespace PromptAdaptationGetAdaptResultsResponse {
|
|
374
386
|
/**
|
|
@@ -625,7 +637,7 @@ export interface PromptAdaptationAdaptParams {
|
|
|
625
637
|
evaluation_metric?: string | null;
|
|
626
638
|
/**
|
|
627
639
|
* Training examples (legacy parameter). Use train_goldens and test_goldens for
|
|
628
|
-
* better control. Minimum 25 examples
|
|
640
|
+
* better control. Minimum 25 examples (or 3 with prototype_mode=true)
|
|
629
641
|
*/
|
|
630
642
|
goldens?: Array<GoldenRecord> | null;
|
|
631
643
|
/**
|
|
@@ -637,14 +649,20 @@ export interface PromptAdaptationAdaptParams {
|
|
|
637
649
|
* evaluation
|
|
638
650
|
*/
|
|
639
651
|
origin_model_evaluation_score?: number | null;
|
|
652
|
+
/**
|
|
653
|
+
* Enable prototype mode to use as few as 3 training examples (instead of 25).
|
|
654
|
+
* Note: Performance may be degraded with fewer examples. Recommended for
|
|
655
|
+
* prototyping AI applications when you don't have enough data yet
|
|
656
|
+
*/
|
|
657
|
+
prototype_mode?: boolean;
|
|
640
658
|
/**
|
|
641
659
|
* Test examples for evaluation. Required if train_goldens is provided. Used to
|
|
642
660
|
* measure final performance on held-out data
|
|
643
661
|
*/
|
|
644
662
|
test_goldens?: Array<GoldenRecord> | null;
|
|
645
663
|
/**
|
|
646
|
-
* Training examples for prompt optimization. Minimum 25 examples required
|
|
647
|
-
* be used with 'goldens' parameter
|
|
664
|
+
* Training examples for prompt optimization. Minimum 25 examples required (or 3
|
|
665
|
+
* with prototype_mode=true). Cannot be used with 'goldens' parameter
|
|
648
666
|
*/
|
|
649
667
|
train_goldens?: Array<GoldenRecord> | null;
|
|
650
668
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-adaptation.d.mts","sourceRoot":"","sources":["../src/resources/prompt-adaptation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"prompt-adaptation.d.mts","sourceRoot":"","sources":["../src/resources/prompt-adaptation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqGG;IACH,KAAK,CACH,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwDG;IACH,eAAe,CACb,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uCAAuC,CAAC;IAItD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,cAAc,CACZ,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sCAAsC,CAAC;IAIrD;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,OAAO,CAAC,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,+BAA+B,CAAC;CAGxG;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,MAAM,EAAE;QAAE,CAA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set Requirements:**
|
|
30
30
|
*
|
|
31
31
|
* - Minimum 25 examples in train_goldens (more examples = better adaptation)
|
|
32
|
+
* - **Prototype mode**: Set `prototype_mode: true` to use as few as 3 examples for
|
|
33
|
+
* prototyping
|
|
34
|
+
* - Recommended when you don't have enough data yet to build a proof-of-concept
|
|
35
|
+
* - Note: Performance may be degraded compared to standard mode (25+ examples)
|
|
36
|
+
* - Trade-off: Faster iteration with less data vs. potentially less
|
|
37
|
+
* generalizability
|
|
32
38
|
* - Each example must have fields matching your template placeholders
|
|
33
39
|
* - Supervised evaluation requires 'answer' field in each golden record
|
|
34
40
|
* - Unsupervised evaluation can work without answers
|
|
@@ -369,6 +375,12 @@ export interface PromptAdaptationGetAdaptResultsResponse {
|
|
|
369
375
|
* - Job status for the origin model evaluation
|
|
370
376
|
*/
|
|
371
377
|
origin_model?: PromptAdaptationGetAdaptResultsResponse.OriginModel | null;
|
|
378
|
+
/**
|
|
379
|
+
* Whether this adaptation run was created with prototype mode (3-24 training
|
|
380
|
+
* examples allowed). Prototype mode may have degraded performance compared to
|
|
381
|
+
* standard mode (25+ examples)
|
|
382
|
+
*/
|
|
383
|
+
prototype_mode?: boolean;
|
|
372
384
|
}
|
|
373
385
|
export declare namespace PromptAdaptationGetAdaptResultsResponse {
|
|
374
386
|
/**
|
|
@@ -625,7 +637,7 @@ export interface PromptAdaptationAdaptParams {
|
|
|
625
637
|
evaluation_metric?: string | null;
|
|
626
638
|
/**
|
|
627
639
|
* Training examples (legacy parameter). Use train_goldens and test_goldens for
|
|
628
|
-
* better control. Minimum 25 examples
|
|
640
|
+
* better control. Minimum 25 examples (or 3 with prototype_mode=true)
|
|
629
641
|
*/
|
|
630
642
|
goldens?: Array<GoldenRecord> | null;
|
|
631
643
|
/**
|
|
@@ -637,14 +649,20 @@ export interface PromptAdaptationAdaptParams {
|
|
|
637
649
|
* evaluation
|
|
638
650
|
*/
|
|
639
651
|
origin_model_evaluation_score?: number | null;
|
|
652
|
+
/**
|
|
653
|
+
* Enable prototype mode to use as few as 3 training examples (instead of 25).
|
|
654
|
+
* Note: Performance may be degraded with fewer examples. Recommended for
|
|
655
|
+
* prototyping AI applications when you don't have enough data yet
|
|
656
|
+
*/
|
|
657
|
+
prototype_mode?: boolean;
|
|
640
658
|
/**
|
|
641
659
|
* Test examples for evaluation. Required if train_goldens is provided. Used to
|
|
642
660
|
* measure final performance on held-out data
|
|
643
661
|
*/
|
|
644
662
|
test_goldens?: Array<GoldenRecord> | null;
|
|
645
663
|
/**
|
|
646
|
-
* Training examples for prompt optimization. Minimum 25 examples required
|
|
647
|
-
* be used with 'goldens' parameter
|
|
664
|
+
* Training examples for prompt optimization. Minimum 25 examples required (or 3
|
|
665
|
+
* with prototype_mode=true). Cannot be used with 'goldens' parameter
|
|
648
666
|
*/
|
|
649
667
|
train_goldens?: Array<GoldenRecord> | null;
|
|
650
668
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-adaptation.d.ts","sourceRoot":"","sources":["../src/resources/prompt-adaptation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"prompt-adaptation.d.ts","sourceRoot":"","sources":["../src/resources/prompt-adaptation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqGG;IACH,KAAK,CACH,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6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;;;OAGG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IAE1C;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;CAC5C;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -31,6 +31,12 @@ class PromptAdaptation extends resource_1.APIResource {
|
|
|
31
31
|
* **Dataset Requirements:**
|
|
32
32
|
*
|
|
33
33
|
* - Minimum 25 examples in train_goldens (more examples = better adaptation)
|
|
34
|
+
* - **Prototype mode**: Set `prototype_mode: true` to use as few as 3 examples for
|
|
35
|
+
* prototyping
|
|
36
|
+
* - Recommended when you don't have enough data yet to build a proof-of-concept
|
|
37
|
+
* - Note: Performance may be degraded compared to standard mode (25+ examples)
|
|
38
|
+
* - Trade-off: Faster iteration with less data vs. potentially less
|
|
39
|
+
* generalizability
|
|
34
40
|
* - Each example must have fields matching your template placeholders
|
|
35
41
|
* - Supervised evaluation requires 'answer' field in each golden record
|
|
36
42
|
* - Unsupervised evaluation can work without answers
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-adaptation.js","sourceRoot":"","sources":["../src/resources/prompt-adaptation.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"prompt-adaptation.js","sourceRoot":"","sources":["../src/resources/prompt-adaptation.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqGG;IACH,KAAK,CACH,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwDG;IACH,eAAe,CACb,eAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,eAAe,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,cAAc,CACZ,eAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,0BAA0B,eAAe,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,OAAO,CAAC,eAAuB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,eAAe,QAAQ,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF;AAzPD,4CAyPC"}
|
|
@@ -28,6 +28,12 @@ export class PromptAdaptation extends APIResource {
|
|
|
28
28
|
* **Dataset Requirements:**
|
|
29
29
|
*
|
|
30
30
|
* - Minimum 25 examples in train_goldens (more examples = better adaptation)
|
|
31
|
+
* - **Prototype mode**: Set `prototype_mode: true` to use as few as 3 examples for
|
|
32
|
+
* prototyping
|
|
33
|
+
* - Recommended when you don't have enough data yet to build a proof-of-concept
|
|
34
|
+
* - Note: Performance may be degraded compared to standard mode (25+ examples)
|
|
35
|
+
* - Trade-off: Faster iteration with less data vs. potentially less
|
|
36
|
+
* generalizability
|
|
31
37
|
* - Each example must have fields matching your template placeholders
|
|
32
38
|
* - Supervised evaluation requires 'answer' field in each golden record
|
|
33
39
|
* - Unsupervised evaluation can work without answers
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-adaptation.mjs","sourceRoot":"","sources":["../src/resources/prompt-adaptation.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C
|
|
1
|
+
{"version":3,"file":"prompt-adaptation.mjs","sourceRoot":"","sources":["../src/resources/prompt-adaptation.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqGG;IACH,KAAK,CACH,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwDG;IACH,eAAe,CACb,eAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,eAAe,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,cAAc,CACZ,eAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,0BAA0B,eAAe,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,OAAO,CAAC,eAAuB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,eAAe,QAAQ,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF"}
|
|
@@ -33,6 +33,12 @@ export class PromptAdaptation extends APIResource {
|
|
|
33
33
|
* **Dataset Requirements:**
|
|
34
34
|
*
|
|
35
35
|
* - Minimum 25 examples in train_goldens (more examples = better adaptation)
|
|
36
|
+
* - **Prototype mode**: Set `prototype_mode: true` to use as few as 3 examples for
|
|
37
|
+
* prototyping
|
|
38
|
+
* - Recommended when you don't have enough data yet to build a proof-of-concept
|
|
39
|
+
* - Note: Performance may be degraded compared to standard mode (25+ examples)
|
|
40
|
+
* - Trade-off: Faster iteration with less data vs. potentially less
|
|
41
|
+
* generalizability
|
|
36
42
|
* - Each example must have fields matching your template placeholders
|
|
37
43
|
* - Supervised evaluation requires 'answer' field in each golden record
|
|
38
44
|
* - Unsupervised evaluation can work without answers
|
|
@@ -409,6 +415,13 @@ export interface PromptAdaptationGetAdaptResultsResponse {
|
|
|
409
415
|
* - Job status for the origin model evaluation
|
|
410
416
|
*/
|
|
411
417
|
origin_model?: PromptAdaptationGetAdaptResultsResponse.OriginModel | null;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Whether this adaptation run was created with prototype mode (3-24 training
|
|
421
|
+
* examples allowed). Prototype mode may have degraded performance compared to
|
|
422
|
+
* standard mode (25+ examples)
|
|
423
|
+
*/
|
|
424
|
+
prototype_mode?: boolean;
|
|
412
425
|
}
|
|
413
426
|
|
|
414
427
|
export namespace PromptAdaptationGetAdaptResultsResponse {
|
|
@@ -703,7 +716,7 @@ export interface PromptAdaptationAdaptParams {
|
|
|
703
716
|
|
|
704
717
|
/**
|
|
705
718
|
* Training examples (legacy parameter). Use train_goldens and test_goldens for
|
|
706
|
-
* better control. Minimum 25 examples
|
|
719
|
+
* better control. Minimum 25 examples (or 3 with prototype_mode=true)
|
|
707
720
|
*/
|
|
708
721
|
goldens?: Array<GoldenRecord> | null;
|
|
709
722
|
|
|
@@ -718,6 +731,13 @@ export interface PromptAdaptationAdaptParams {
|
|
|
718
731
|
*/
|
|
719
732
|
origin_model_evaluation_score?: number | null;
|
|
720
733
|
|
|
734
|
+
/**
|
|
735
|
+
* Enable prototype mode to use as few as 3 training examples (instead of 25).
|
|
736
|
+
* Note: Performance may be degraded with fewer examples. Recommended for
|
|
737
|
+
* prototyping AI applications when you don't have enough data yet
|
|
738
|
+
*/
|
|
739
|
+
prototype_mode?: boolean;
|
|
740
|
+
|
|
721
741
|
/**
|
|
722
742
|
* Test examples for evaluation. Required if train_goldens is provided. Used to
|
|
723
743
|
* measure final performance on held-out data
|
|
@@ -725,8 +745,8 @@ export interface PromptAdaptationAdaptParams {
|
|
|
725
745
|
test_goldens?: Array<GoldenRecord> | null;
|
|
726
746
|
|
|
727
747
|
/**
|
|
728
|
-
* Training examples for prompt optimization. Minimum 25 examples required
|
|
729
|
-
* be used with 'goldens' parameter
|
|
748
|
+
* Training examples for prompt optimization. Minimum 25 examples required (or 3
|
|
749
|
+
* with prototype_mode=true). Cannot be used with 'goldens' parameter
|
|
730
750
|
*/
|
|
731
751
|
train_goldens?: Array<GoldenRecord> | null;
|
|
732
752
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.0.0-
|
|
1
|
+
export const VERSION = '2.0.0-rc20'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.0.0-
|
|
1
|
+
export declare const VERSION = "2.0.0-rc20";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.0.0-
|
|
1
|
+
export declare const VERSION = "2.0.0-rc20";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.0.0-
|
|
1
|
+
export const VERSION = '2.0.0-rc20'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|