notdiamond 2.0.0-rc20 → 2.0.0-rc21

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.0-rc21 (2025-12-08)
4
+
5
+ Full Changelog: [v2.0.0-rc20...v2.0.0-rc21](https://github.com/Not-Diamond/not-diamond-typescript/compare/v2.0.0-rc20...v2.0.0-rc21)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **docs:** correct comment formatting in README.md for prompt adaptation examples ([37ecd5d](https://github.com/Not-Diamond/not-diamond-typescript/commit/37ecd5d51ec85ba3d7c513939aa269472807f64c))
10
+
3
11
  ## 2.0.0-rc20 (2025-12-08)
4
12
 
5
13
  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)
package/README.md CHANGED
@@ -41,10 +41,10 @@ const client = new Notdiamond({
41
41
  apiKey: process.env['NOTDIAMOND_API_KEY'], // This is the default and can be omitted
42
42
  });
43
43
 
44
- // Step 1: Start a prompt adaptation job
44
+ // Step 1: Start a prompt adaptation job with prototype mode
45
45
  const adaptation = await client.promptAdaptation.adapt({
46
46
  fields: ['question'],
47
- system_prompt: 'You are a helpful assistant that answers questions accurately.',
47
+ system_prompt: 'You are a mathematical assistant that counts digits accurately.',
48
48
  target_models: [
49
49
  {
50
50
  model: 'claude-sonnet-4-5-20250929',
@@ -57,18 +57,51 @@ const adaptation = await client.promptAdaptation.adapt({
57
57
  ],
58
58
  template: 'Question: {question}\nAnswer:',
59
59
  train_goldens: [
60
- { fields: { question: 'What is 2+2?' }, answer: '4' },
61
- { fields: { question: 'What is the capital of France?' }, answer: 'Paris' },
62
- { fields: { question: 'Who wrote Romeo and Juliet?' }, answer: 'William Shakespeare' },
63
- // Add at least 25 training examples for best results
64
- // More examples = better adaptation quality
60
+ {
61
+ fields: { question: 'How many digits are in (23874045494*2789392485)?' },
62
+ answer: '20',
63
+ },
64
+ {
65
+ fields: { question: 'How many odd digits are in (999*777*555*333*111)?' },
66
+ answer: '10',
67
+ },
68
+ {
69
+ fields: { question: "How often does the number '17' appear in the digits of (287558*17)?" },
70
+ answer: '0',
71
+ },
72
+ {
73
+ fields: { question: 'How many even digits are in (222*444*666*888)?' },
74
+ answer: '16',
75
+ },
76
+ {
77
+ fields: { question: 'How many 0s are in (1234567890*1357908642)?' },
78
+ answer: '2',
79
+ },
65
80
  ],
66
81
  test_goldens: [
67
- { fields: { question: 'What is 3*3?' }, answer: '9' },
68
- { fields: { question: 'What is the largest ocean?' }, answer: 'Pacific Ocean' },
69
- // Add test examples to validate performance
82
+ {
83
+ fields: { question: 'How many digits are in (9876543210*123456)?' },
84
+ answer: '15',
85
+ },
86
+ {
87
+ fields: { question: 'How many odd digits are in (135*579*246)?' },
88
+ answer: '8',
89
+ },
90
+ {
91
+ fields: { question: "How often does the number '42' appear in the digits of (123456789*42)?" },
92
+ answer: '1',
93
+ },
94
+ {
95
+ fields: { question: 'How many even digits are in (1111*2222*3333)?' },
96
+ answer: '10',
97
+ },
98
+ {
99
+ fields: { question: 'How many 9s are in (999999*888888)?' },
100
+ answer: '11',
101
+ },
70
102
  ],
71
103
  evaluation_metric: 'LLMaaJ:Sem_Sim_1', // Or use custom evaluation
104
+ prototype_mode: true, // Enable faster prototype mode for quick experimentation
72
105
  });
73
106
 
74
107
  console.log(`Adaptation started: ${adaptation.adaptation_run_id}`);
@@ -324,7 +357,7 @@ const response = await client.prompt.adapt
324
357
  template: 'Question: {question}\nAnswer:',
325
358
  train_goldens: [
326
359
  { fields: { question: 'What is 2+2?' }, answer: '4' },
327
- // Add at least 25 examples...
360
+ //Add at least 25 examples...
328
361
  ],
329
362
  test_goldens: [
330
363
  { fields: { question: 'What is 3*3?' }, answer: '9' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notdiamond",
3
- "version": "2.0.0-rc20",
3
+ "version": "2.0.0-rc21",
4
4
  "description": "The official TypeScript library for the Notdiamond API",
5
5
  "author": "Notdiamond <contact@notdiamond.ai>",
6
6
  "types": "./index.d.ts",
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '2.0.0-rc20'; // x-release-please-version
1
+ export const VERSION = '2.0.0-rc21'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.0.0-rc20";
1
+ export declare const VERSION = "2.0.0-rc21";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.0.0-rc20";
1
+ export declare const VERSION = "2.0.0-rc21";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '2.0.0-rc20'; // x-release-please-version
4
+ exports.VERSION = '2.0.0-rc21'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.0.0-rc20'; // x-release-please-version
1
+ export const VERSION = '2.0.0-rc21'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map