@promptbook/core 0.61.0-4 → 0.61.0-8

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
@@ -1119,7 +1119,7 @@ var BlockTypes = [
1119
1119
  // <- [🩻]
1120
1120
  ];
1121
1121
 
1122
- var PipelineCollection = [{title:"Prepare Knowledge from Markdown",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.61.0-3",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"],blockType:"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:[{name:"c",title:"C",content:"V",keywords:["D"],index:[{modelName:"mocked-facked",position:[0.294556258533635,0.08508087826078059,0.9156543858255883,-0.3777772929060159,0.08709387640349897,0.8372407403505266,-0.21483373217341706,-0.2648711635771943,-0.3686694108490354,-0.9143993815989404,0.45275852436438413,-0.7794855393057785,-0.16869930957020252,-0.122133964628802,-0.42008797818780597,-0.3350178157221064,-0.4822725380062245,0.006591222762707183,-0.260130021577627,-0.9170129699749254,-0.07165476400608739,-0.006579872791692587,0.5638579743103254,0.04632072421950273,0.9490873112599485]}],sources:[{title:"Markdown document",href:"#"}]}],sourceFile:"./promptbook-collection/prepare-knowledge-from-markdown.ptbk.md"},{title:"Prepare Keywords",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-keywords.ptbk.md",promptbookVersion:"0.61.0-3",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"],blockType:"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:[{name:"q",title:"Q",content:"S",keywords:["V"],index:[{modelName:"mocked-facked",position:[-0.8490301561297757,-0.5430176634620163,-0.9955756275578311,-0.7284319175660596,0.3998145027991651,0.7008150297757445,-0.17401289648627793,-0.3443820738223553,0.22850171423189192,-0.196765266341564,0.6250398568185691,0.07940894084234351,-0.8680788774154915,0.25326424337396203,-0.588676329534259,0.9405582963110501,0.00016338823222472598,0.21323201355152666,-0.8871805470020186,-0.6046632159200525,-0.7844822039016419,-0.8180417434557516,0.5256690528091177,0.05015976951380363,0.18281002553996695]}],sources:[{title:"Markdown document",href:"#"}]}],sourceFile:"./promptbook-collection/prepare-knowledge-keywords.ptbk.md"},{title:"Prepare Title",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-title.ptbk.md",promptbookVersion:"0.61.0-3",parameters:[{name:"content",description:"The content",isInput:true,isOutput:false},{name:"title",description:"The title of the document",isInput:false,isOutput:true}],promptTemplates:[{name:"knowledge",title:"Knowledge",dependentParameterNames:["content"],blockType:"PROMPT_TEMPLATE",expectations:{words:{min:1,max:8}},modelRequirements:{modelVariant:"CHAT",modelName:"claude-3-opus-20240229"},content:"You are experienced content creator, write best title for the document.\n\n# Rules\n\n- Write just title, nothing else\n- Title should be concise and clear\n- Write maximum 5 words for the title\n\n# The document\n\n> {content}",resultingParameterName:"title"}],knowledge:[{name:"c",title:"C",content:"D",keywords:["O"],index:[{modelName:"mocked-facked",position:[0.9116207422379548,-0.09945888049397178,0.3269234133911252,-0.011862839661660018,0.6566169296258244,0.05956773265276771,0.7393151644578873,0.5569833800731887,0.25206583148030237,-0.2726425583725023,-0.021766781401357793,-0.4390522466219169,0.2918073233538734,0.7469873996812297,-0.36188669930120554,-0.1057548557650585,-0.317224870675763,0.29227697894004523,-0.9491043197349547,0.2533569368705897,0.9644628442998742,0.20227927246697464,0.9642688277920879,-0.14410565884958526,-0.8125904788117673]}],sources:[{title:"Markdown document",href:"#"}]}],sourceFile:"./promptbook-collection/prepare-knowledge-title.ptbk.md"}];
1122
+ var PipelineCollection = [{title:"Prepare Knowledge from Markdown",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.61.0-7",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"],blockType:"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:[{name:"a",title:"A",content:"E",keywords:["C"],index:[{modelName:"mocked-facked",position:[0.78397976964991,0.8212659787854091,-0.611214819808136,0.9842269766659517,0.09214503313567368,0.28177590866582625,-0.12161913541586511,0.6994109283908347,-0.6206406118361469,0.4736803375760563,0.49201755489593424,0.9044360980603607,-0.08733958571688571,-0.9257768256687897,-0.28731366394146773,0.0024816569933210353,-0.48944673482860024,0.9394579467219506,0.7259036059979738,-0.8949913588776535,-0.6640460541442845,0.8245803862653109,-0.7288430032842141,0.18115910520557232,0.5375884634362005]}],sources:[{title:"Markdown document",href:"#"}]}],sourceFile:"./promptbook-collection/prepare-knowledge-from-markdown.ptbk.md"},{title:"Prepare Keywords",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-keywords.ptbk.md",promptbookVersion:"0.61.0-7",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"],blockType:"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:[{name:"d",title:"D",content:"C",keywords:["Q"],index:[{modelName:"mocked-facked",position:[0.7919793367843324,-0.9072441480041062,0.11853751696144998,0.46616154848101976,-0.9892780279319777,0.1299579537820139,0.9220679774706775,0.2728053967561901,-0.4800040513435535,0.9541187531015636,0.8067131935880352,0.676566075516484,-0.8720442934606227,0.2866862735651865,0.7905252743414106,0.9966990333568035,-0.8355610224521026,-0.9860935403545175,-0.7850394106639031,0.15921129113667032,0.04437519078983243,0.5682475207841331,-0.1588089105270667,0.5866008773650537,0.06536439889200985]}],sources:[{title:"Markdown document",href:"#"}]}],sourceFile:"./promptbook-collection/prepare-knowledge-keywords.ptbk.md"},{title:"Prepare Title",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-title.ptbk.md",promptbookVersion:"0.61.0-7",parameters:[{name:"content",description:"The content",isInput:true,isOutput:false},{name:"title",description:"The title of the document",isInput:false,isOutput:true}],promptTemplates:[{name:"knowledge",title:"Knowledge",dependentParameterNames:["content"],blockType:"PROMPT_TEMPLATE",expectations:{words:{min:1,max:8}},modelRequirements:{modelVariant:"CHAT",modelName:"claude-3-opus-20240229"},content:"You are experienced content creator, write best title for the document.\n\n# Rules\n\n- Write just title, nothing else\n- Title should be concise and clear\n- Write maximum 5 words for the title\n\n# The document\n\n> {content}",resultingParameterName:"title"}],knowledge:[{name:"t",title:"T",content:"T",keywords:["L"],index:[{modelName:"mocked-facked",position:[0.21341099077494574,0.35675660018669,0.3527421018716552,0.26121559914860404,0.47416989595778736,0.20628965620437478,0.22925895038637112,0.1648966242964729,0.7132312832696348,-0.9676508210091153,-0.7267265342311835,0.764613575303251,-0.9918661693277167,-0.4439061507792821,-0.40639947552819233,0.526518299891829,0.051013482822581224,0.8538171431670776,0.802812230819733,-0.6553196538403943,-0.7470159728642916,-0.7845029608185214,-0.4079178718460117,-0.0006045851035785255,-0.9459883693610776]}],sources:[{title:"Markdown document",href:"#"}]}],sourceFile:"./promptbook-collection/prepare-knowledge-title.ptbk.md"}];
1123
1123
 
1124
1124
  var defaultDiacriticsRemovalMap = [
1125
1125
  {
@@ -1783,7 +1783,7 @@ function arrayableToArray(input) {
1783
1783
  /**
1784
1784
  * The version of the Promptbook library
1785
1785
  */
1786
- var PROMPTBOOK_VERSION = '0.61.0-3';
1786
+ var PROMPTBOOK_VERSION = '0.61.0-7';
1787
1787
  // TODO: !!!! List here all the versions and annotate + put into script
1788
1788
 
1789
1789
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/core",
3
- "version": "0.61.0-4",
3
+ "version": "0.61.0-8",
4
4
  "description": "Supercharge your use of large language models",
5
5
  "private": false,
6
6
  "sideEffects": false,
package/umd/index.umd.js CHANGED
@@ -1126,7 +1126,7 @@
1126
1126
  // <- [🩻]
1127
1127
  ];
1128
1128
 
1129
- var PipelineCollection = [{title:"Prepare Knowledge from Markdown",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.61.0-3",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"],blockType:"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:[{name:"c",title:"C",content:"V",keywords:["D"],index:[{modelName:"mocked-facked",position:[0.294556258533635,0.08508087826078059,0.9156543858255883,-0.3777772929060159,0.08709387640349897,0.8372407403505266,-0.21483373217341706,-0.2648711635771943,-0.3686694108490354,-0.9143993815989404,0.45275852436438413,-0.7794855393057785,-0.16869930957020252,-0.122133964628802,-0.42008797818780597,-0.3350178157221064,-0.4822725380062245,0.006591222762707183,-0.260130021577627,-0.9170129699749254,-0.07165476400608739,-0.006579872791692587,0.5638579743103254,0.04632072421950273,0.9490873112599485]}],sources:[{title:"Markdown document",href:"#"}]}],sourceFile:"./promptbook-collection/prepare-knowledge-from-markdown.ptbk.md"},{title:"Prepare Keywords",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-keywords.ptbk.md",promptbookVersion:"0.61.0-3",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"],blockType:"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:[{name:"q",title:"Q",content:"S",keywords:["V"],index:[{modelName:"mocked-facked",position:[-0.8490301561297757,-0.5430176634620163,-0.9955756275578311,-0.7284319175660596,0.3998145027991651,0.7008150297757445,-0.17401289648627793,-0.3443820738223553,0.22850171423189192,-0.196765266341564,0.6250398568185691,0.07940894084234351,-0.8680788774154915,0.25326424337396203,-0.588676329534259,0.9405582963110501,0.00016338823222472598,0.21323201355152666,-0.8871805470020186,-0.6046632159200525,-0.7844822039016419,-0.8180417434557516,0.5256690528091177,0.05015976951380363,0.18281002553996695]}],sources:[{title:"Markdown document",href:"#"}]}],sourceFile:"./promptbook-collection/prepare-knowledge-keywords.ptbk.md"},{title:"Prepare Title",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-title.ptbk.md",promptbookVersion:"0.61.0-3",parameters:[{name:"content",description:"The content",isInput:true,isOutput:false},{name:"title",description:"The title of the document",isInput:false,isOutput:true}],promptTemplates:[{name:"knowledge",title:"Knowledge",dependentParameterNames:["content"],blockType:"PROMPT_TEMPLATE",expectations:{words:{min:1,max:8}},modelRequirements:{modelVariant:"CHAT",modelName:"claude-3-opus-20240229"},content:"You are experienced content creator, write best title for the document.\n\n# Rules\n\n- Write just title, nothing else\n- Title should be concise and clear\n- Write maximum 5 words for the title\n\n# The document\n\n> {content}",resultingParameterName:"title"}],knowledge:[{name:"c",title:"C",content:"D",keywords:["O"],index:[{modelName:"mocked-facked",position:[0.9116207422379548,-0.09945888049397178,0.3269234133911252,-0.011862839661660018,0.6566169296258244,0.05956773265276771,0.7393151644578873,0.5569833800731887,0.25206583148030237,-0.2726425583725023,-0.021766781401357793,-0.4390522466219169,0.2918073233538734,0.7469873996812297,-0.36188669930120554,-0.1057548557650585,-0.317224870675763,0.29227697894004523,-0.9491043197349547,0.2533569368705897,0.9644628442998742,0.20227927246697464,0.9642688277920879,-0.14410565884958526,-0.8125904788117673]}],sources:[{title:"Markdown document",href:"#"}]}],sourceFile:"./promptbook-collection/prepare-knowledge-title.ptbk.md"}];
1129
+ var PipelineCollection = [{title:"Prepare Knowledge from Markdown",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.61.0-7",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"],blockType:"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:[{name:"a",title:"A",content:"E",keywords:["C"],index:[{modelName:"mocked-facked",position:[0.78397976964991,0.8212659787854091,-0.611214819808136,0.9842269766659517,0.09214503313567368,0.28177590866582625,-0.12161913541586511,0.6994109283908347,-0.6206406118361469,0.4736803375760563,0.49201755489593424,0.9044360980603607,-0.08733958571688571,-0.9257768256687897,-0.28731366394146773,0.0024816569933210353,-0.48944673482860024,0.9394579467219506,0.7259036059979738,-0.8949913588776535,-0.6640460541442845,0.8245803862653109,-0.7288430032842141,0.18115910520557232,0.5375884634362005]}],sources:[{title:"Markdown document",href:"#"}]}],sourceFile:"./promptbook-collection/prepare-knowledge-from-markdown.ptbk.md"},{title:"Prepare Keywords",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-keywords.ptbk.md",promptbookVersion:"0.61.0-7",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"],blockType:"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:[{name:"d",title:"D",content:"C",keywords:["Q"],index:[{modelName:"mocked-facked",position:[0.7919793367843324,-0.9072441480041062,0.11853751696144998,0.46616154848101976,-0.9892780279319777,0.1299579537820139,0.9220679774706775,0.2728053967561901,-0.4800040513435535,0.9541187531015636,0.8067131935880352,0.676566075516484,-0.8720442934606227,0.2866862735651865,0.7905252743414106,0.9966990333568035,-0.8355610224521026,-0.9860935403545175,-0.7850394106639031,0.15921129113667032,0.04437519078983243,0.5682475207841331,-0.1588089105270667,0.5866008773650537,0.06536439889200985]}],sources:[{title:"Markdown document",href:"#"}]}],sourceFile:"./promptbook-collection/prepare-knowledge-keywords.ptbk.md"},{title:"Prepare Title",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-title.ptbk.md",promptbookVersion:"0.61.0-7",parameters:[{name:"content",description:"The content",isInput:true,isOutput:false},{name:"title",description:"The title of the document",isInput:false,isOutput:true}],promptTemplates:[{name:"knowledge",title:"Knowledge",dependentParameterNames:["content"],blockType:"PROMPT_TEMPLATE",expectations:{words:{min:1,max:8}},modelRequirements:{modelVariant:"CHAT",modelName:"claude-3-opus-20240229"},content:"You are experienced content creator, write best title for the document.\n\n# Rules\n\n- Write just title, nothing else\n- Title should be concise and clear\n- Write maximum 5 words for the title\n\n# The document\n\n> {content}",resultingParameterName:"title"}],knowledge:[{name:"t",title:"T",content:"T",keywords:["L"],index:[{modelName:"mocked-facked",position:[0.21341099077494574,0.35675660018669,0.3527421018716552,0.26121559914860404,0.47416989595778736,0.20628965620437478,0.22925895038637112,0.1648966242964729,0.7132312832696348,-0.9676508210091153,-0.7267265342311835,0.764613575303251,-0.9918661693277167,-0.4439061507792821,-0.40639947552819233,0.526518299891829,0.051013482822581224,0.8538171431670776,0.802812230819733,-0.6553196538403943,-0.7470159728642916,-0.7845029608185214,-0.4079178718460117,-0.0006045851035785255,-0.9459883693610776]}],sources:[{title:"Markdown document",href:"#"}]}],sourceFile:"./promptbook-collection/prepare-knowledge-title.ptbk.md"}];
1130
1130
 
1131
1131
  var defaultDiacriticsRemovalMap = [
1132
1132
  {
@@ -1790,7 +1790,7 @@
1790
1790
  /**
1791
1791
  * The version of the Promptbook library
1792
1792
  */
1793
- var PROMPTBOOK_VERSION = '0.61.0-3';
1793
+ var PROMPTBOOK_VERSION = '0.61.0-7';
1794
1794
  // TODO: !!!! List here all the versions and annotate + put into script
1795
1795
 
1796
1796
  /**