@promptbook/node 0.59.0-35 → 0.59.0-36

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/esm/index.es.js CHANGED
@@ -133,7 +133,7 @@ var LOOP_LIMIT = 1000;
133
133
  */
134
134
  var PROMPTBOOK_MAKED_BASE_FILENAME = "index";
135
135
 
136
- var promptbookLibrary = [{title:"Prepare Keywords",promptbookUrl:"https://promptbook.studio/promptbook/prepare-keywords.ptbk.md",promptbookVersion:"0.59.0-34",parameters:[{name:"content",description:"The content",isInput:true,isOutput:false},{name:"keywords",description:"Keywords separated by comma",isInput:false,isOutput:true}],promptTemplates:[{name:"knowledge",title:"Knowledge",dependentParameterNames:["content"],executionType:"PROMPT_TEMPLATE",modelRequirements:{modelVariant:"CHAT",modelName:"claude-3-opus-20240229"},content:"You are experienced data researcher, detect the important keywords in the document.\n\n# Rules\n\n- Write just keywords separated by comma\n\n# The document\n\nTake information from this document:\n\n> {content}",resultingParameterName:"keywords"}],knowledge:[]},{title:"Prepare Knowledge from Markdown",promptbookUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.59.0-34",parameters:[{name:"content",description:"Markdown document content",isInput:true,isOutput:false},{name:"knowledge",description:"The knowledge JSON object",isInput:false,isOutput:true}],promptTemplates:[{name:"knowledge",title:"Knowledge",dependentParameterNames:["content"],executionType:"PROMPT_TEMPLATE",modelRequirements:{modelVariant:"CHAT",modelName:"claude-3-opus-20240229"},content:"You are experienced data researcher, extract the important knowledge from the document.\n\n# Rules\n\n- Make pieces of information concise, clear, and easy to understand\n- One piece of information should be approximately 1 paragraph\n- Divide the paragraphs by markdown horizontal lines ---\n- Omit irrelevant information\n- Group redundant information\n- Write just extracted information, nothing else\n\n# The document\n\nTake information from this document:\n\n> {content}",resultingParameterName:"knowledge"}],knowledge:[]}];
136
+ var promptbookLibrary = [{title:"Prepare Keywords",promptbookUrl:"https://promptbook.studio/promptbook/prepare-keywords.ptbk.md",promptbookVersion:"0.59.0-35",parameters:[{name:"content",description:"The content",isInput:true,isOutput:false},{name:"keywords",description:"Keywords separated by comma",isInput:false,isOutput:true}],promptTemplates:[{name:"knowledge",title:"Knowledge",dependentParameterNames:["content"],executionType:"PROMPT_TEMPLATE",modelRequirements:{modelVariant:"CHAT",modelName:"claude-3-opus-20240229"},content:"You are experienced data researcher, detect the important keywords in the document.\n\n# Rules\n\n- Write just keywords separated by comma\n\n# The document\n\nTake information from this document:\n\n> {content}",resultingParameterName:"keywords"}],knowledge:[]},{title:"Prepare Knowledge from Markdown",promptbookUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.59.0-35",parameters:[{name:"content",description:"Markdown document content",isInput:true,isOutput:false},{name:"knowledge",description:"The knowledge JSON object",isInput:false,isOutput:true}],promptTemplates:[{name:"knowledge",title:"Knowledge",dependentParameterNames:["content"],executionType:"PROMPT_TEMPLATE",modelRequirements:{modelVariant:"CHAT",modelName:"claude-3-opus-20240229"},content:"You are experienced data researcher, extract the important knowledge from the document.\n\n# Rules\n\n- Make pieces of information concise, clear, and easy to understand\n- One piece of information should be approximately 1 paragraph\n- Divide the paragraphs by markdown horizontal lines ---\n- Omit irrelevant information\n- Group redundant information\n- Write just extracted information, nothing else\n\n# The document\n\nTake information from this document:\n\n> {content}",resultingParameterName:"knowledge"}],knowledge:[]}];
137
137
 
138
138
  /**
139
139
  * This error indicates errors during the execution of the promptbook
@@ -466,7 +466,7 @@ function isValidJsonString(value /* <-[👨‍⚖️] */) {
466
466
  /**
467
467
  * The version of the Promptbook library
468
468
  */
469
- var PROMPTBOOK_VERSION = '0.59.0-34';
469
+ var PROMPTBOOK_VERSION = '0.59.0-35';
470
470
 
471
471
  /**
472
472
  * Function `addUsage` will add multiple usages into one
@@ -44,6 +44,7 @@ export type AvailableModel = {
44
44
  readonly modelVariant: ModelVariant;
45
45
  };
46
46
  /**
47
+ * TODO: [🧠] Emulation of one type of model with another one - emuate chat with completion; emulate translation with chat
47
48
  * TODO: [🍓][♐] Some heuristic to pick the best model in listed models
48
49
  * TODO: [🏳] gptChat -> chat, gptComplete -> complete, translate
49
50
  * TODO: [🧠] Should or should not there be a word "GPT" in both gptComplete and gptChat
@@ -15,7 +15,6 @@ export declare const OPENAI_MODELS: Array<AvailableModel & {
15
15
  };
16
16
  }>;
17
17
  /**
18
- * TODO: !!!! Add embedding models
19
18
  * TODO: [🧠] Some mechanism to propagate unsureness
20
19
  * TODO: [🕚][👮‍♀️] Make this list dynamic - dynamically can be listed modelNames but not modelVariant, legacy status, context length and pricing
21
20
  * TODO: [🧠][👮‍♀️] Put here more info like description, isVision, trainingDateCutoff, languages, strengths ( Top-level performance, intelligence, fluency, and understanding), contextWindow,...
@@ -2,5 +2,5 @@ import type { MaterialKnowledgePieceJson } from './MaterialKnowledgePieceJson';
2
2
  export type KnowledgeJson = Array<MaterialKnowledgePieceJson>;
3
3
  /**
4
4
  * !!!! Annotate
5
- * TODO: [🦪]
5
+ * TODO: [🦪] Internal links between (Material)KnowledgePieces withing the KnowledgeJson
6
6
  */
@@ -22,7 +22,7 @@ export type MaterialKnowledgePieceJson = {
22
22
  /**
23
23
  * TODO: !!! Use or uninstall xyzt
24
24
  * !!!! Annotate
25
- * TODO: [🧠][🦪] Maybe allow internal linkes between (Material)KnowledgePieces withing the KnowledgeJson and maybe require to explicitelly reference the source of the knowledge
25
+ * TODO: [🧠][🦪] Maybe allow internal links between (Material)KnowledgePieces withing the KnowledgeJson and maybe require to explicitelly reference the source of the knowledge
26
26
  * TODO: [🧠] Make some non-material sources like external search engine or dialog to user
27
27
  * TODO: [🧠] Make some non-material (and maybe non-knowledge-like but tool-like) sources like calculator, code interpreter
28
28
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/node",
3
- "version": "0.59.0-35",
3
+ "version": "0.59.0-36",
4
4
  "description": "Library to supercharge your use of large language models",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -49,7 +49,7 @@
49
49
  }
50
50
  ],
51
51
  "peerDependencies": {
52
- "@promptbook/core": "0.59.0-35"
52
+ "@promptbook/core": "0.59.0-36"
53
53
  },
54
54
  "main": "./umd/index.umd.js",
55
55
  "module": "./esm/index.es.js",
package/umd/index.umd.js CHANGED
@@ -138,7 +138,7 @@
138
138
  */
139
139
  var PROMPTBOOK_MAKED_BASE_FILENAME = "index";
140
140
 
141
- var promptbookLibrary = [{title:"Prepare Keywords",promptbookUrl:"https://promptbook.studio/promptbook/prepare-keywords.ptbk.md",promptbookVersion:"0.59.0-34",parameters:[{name:"content",description:"The content",isInput:true,isOutput:false},{name:"keywords",description:"Keywords separated by comma",isInput:false,isOutput:true}],promptTemplates:[{name:"knowledge",title:"Knowledge",dependentParameterNames:["content"],executionType:"PROMPT_TEMPLATE",modelRequirements:{modelVariant:"CHAT",modelName:"claude-3-opus-20240229"},content:"You are experienced data researcher, detect the important keywords in the document.\n\n# Rules\n\n- Write just keywords separated by comma\n\n# The document\n\nTake information from this document:\n\n> {content}",resultingParameterName:"keywords"}],knowledge:[]},{title:"Prepare Knowledge from Markdown",promptbookUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.59.0-34",parameters:[{name:"content",description:"Markdown document content",isInput:true,isOutput:false},{name:"knowledge",description:"The knowledge JSON object",isInput:false,isOutput:true}],promptTemplates:[{name:"knowledge",title:"Knowledge",dependentParameterNames:["content"],executionType:"PROMPT_TEMPLATE",modelRequirements:{modelVariant:"CHAT",modelName:"claude-3-opus-20240229"},content:"You are experienced data researcher, extract the important knowledge from the document.\n\n# Rules\n\n- Make pieces of information concise, clear, and easy to understand\n- One piece of information should be approximately 1 paragraph\n- Divide the paragraphs by markdown horizontal lines ---\n- Omit irrelevant information\n- Group redundant information\n- Write just extracted information, nothing else\n\n# The document\n\nTake information from this document:\n\n> {content}",resultingParameterName:"knowledge"}],knowledge:[]}];
141
+ var promptbookLibrary = [{title:"Prepare Keywords",promptbookUrl:"https://promptbook.studio/promptbook/prepare-keywords.ptbk.md",promptbookVersion:"0.59.0-35",parameters:[{name:"content",description:"The content",isInput:true,isOutput:false},{name:"keywords",description:"Keywords separated by comma",isInput:false,isOutput:true}],promptTemplates:[{name:"knowledge",title:"Knowledge",dependentParameterNames:["content"],executionType:"PROMPT_TEMPLATE",modelRequirements:{modelVariant:"CHAT",modelName:"claude-3-opus-20240229"},content:"You are experienced data researcher, detect the important keywords in the document.\n\n# Rules\n\n- Write just keywords separated by comma\n\n# The document\n\nTake information from this document:\n\n> {content}",resultingParameterName:"keywords"}],knowledge:[]},{title:"Prepare Knowledge from Markdown",promptbookUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.59.0-35",parameters:[{name:"content",description:"Markdown document content",isInput:true,isOutput:false},{name:"knowledge",description:"The knowledge JSON object",isInput:false,isOutput:true}],promptTemplates:[{name:"knowledge",title:"Knowledge",dependentParameterNames:["content"],executionType:"PROMPT_TEMPLATE",modelRequirements:{modelVariant:"CHAT",modelName:"claude-3-opus-20240229"},content:"You are experienced data researcher, extract the important knowledge from the document.\n\n# Rules\n\n- Make pieces of information concise, clear, and easy to understand\n- One piece of information should be approximately 1 paragraph\n- Divide the paragraphs by markdown horizontal lines ---\n- Omit irrelevant information\n- Group redundant information\n- Write just extracted information, nothing else\n\n# The document\n\nTake information from this document:\n\n> {content}",resultingParameterName:"knowledge"}],knowledge:[]}];
142
142
 
143
143
  /**
144
144
  * This error indicates errors during the execution of the promptbook
@@ -471,7 +471,7 @@
471
471
  /**
472
472
  * The version of the Promptbook library
473
473
  */
474
- var PROMPTBOOK_VERSION = '0.59.0-34';
474
+ var PROMPTBOOK_VERSION = '0.59.0-35';
475
475
 
476
476
  /**
477
477
  * Function `addUsage` will add multiple usages into one
@@ -44,6 +44,7 @@ export type AvailableModel = {
44
44
  readonly modelVariant: ModelVariant;
45
45
  };
46
46
  /**
47
+ * TODO: [🧠] Emulation of one type of model with another one - emuate chat with completion; emulate translation with chat
47
48
  * TODO: [🍓][♐] Some heuristic to pick the best model in listed models
48
49
  * TODO: [🏳] gptChat -> chat, gptComplete -> complete, translate
49
50
  * TODO: [🧠] Should or should not there be a word "GPT" in both gptComplete and gptChat
@@ -15,7 +15,6 @@ export declare const OPENAI_MODELS: Array<AvailableModel & {
15
15
  };
16
16
  }>;
17
17
  /**
18
- * TODO: !!!! Add embedding models
19
18
  * TODO: [🧠] Some mechanism to propagate unsureness
20
19
  * TODO: [🕚][👮‍♀️] Make this list dynamic - dynamically can be listed modelNames but not modelVariant, legacy status, context length and pricing
21
20
  * TODO: [🧠][👮‍♀️] Put here more info like description, isVision, trainingDateCutoff, languages, strengths ( Top-level performance, intelligence, fluency, and understanding), contextWindow,...
@@ -2,5 +2,5 @@ import type { MaterialKnowledgePieceJson } from './MaterialKnowledgePieceJson';
2
2
  export type KnowledgeJson = Array<MaterialKnowledgePieceJson>;
3
3
  /**
4
4
  * !!!! Annotate
5
- * TODO: [🦪]
5
+ * TODO: [🦪] Internal links between (Material)KnowledgePieces withing the KnowledgeJson
6
6
  */
@@ -22,7 +22,7 @@ export type MaterialKnowledgePieceJson = {
22
22
  /**
23
23
  * TODO: !!! Use or uninstall xyzt
24
24
  * !!!! Annotate
25
- * TODO: [🧠][🦪] Maybe allow internal linkes between (Material)KnowledgePieces withing the KnowledgeJson and maybe require to explicitelly reference the source of the knowledge
25
+ * TODO: [🧠][🦪] Maybe allow internal links between (Material)KnowledgePieces withing the KnowledgeJson and maybe require to explicitelly reference the source of the knowledge
26
26
  * TODO: [🧠] Make some non-material sources like external search engine or dialog to user
27
27
  * TODO: [🧠] Make some non-material (and maybe non-knowledge-like but tool-like) sources like calculator, code interpreter
28
28
  */