@promptbook/node 0.61.0-2 → 0.61.0-4
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 +2 -2
- package/esm/typings/src/_packages/utils.index.d.ts +0 -1
- package/package.json +2 -2
- package/umd/index.umd.js +2 -2
- package/umd/typings/src/_packages/utils.index.d.ts +0 -1
- /package/esm/typings/src/_packages/{markdown-utils.d.ts → markdown-utils.index.d.ts} +0 -0
- /package/umd/typings/src/_packages/{markdown-utils.d.ts → markdown-utils.index.d.ts} +0 -0
package/esm/index.es.js
CHANGED
|
@@ -141,7 +141,7 @@ var RESERVED_PARAMETER_NAMES = [
|
|
|
141
141
|
// <- TODO: Add [emoji] + instructions ACRY when adding new reserved parameter
|
|
142
142
|
];
|
|
143
143
|
|
|
144
|
-
var PipelineCollection = [{title:"Prepare Knowledge from Markdown",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.61.0-
|
|
144
|
+
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"}];
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* Prettify the html code
|
|
@@ -1547,7 +1547,7 @@ function arrayableToArray(input) {
|
|
|
1547
1547
|
/**
|
|
1548
1548
|
* The version of the Promptbook library
|
|
1549
1549
|
*/
|
|
1550
|
-
var PROMPTBOOK_VERSION = '0.61.0-
|
|
1550
|
+
var PROMPTBOOK_VERSION = '0.61.0-3';
|
|
1551
1551
|
// TODO: !!!! List here all the versions and annotate + put into script
|
|
1552
1552
|
|
|
1553
1553
|
/**
|
|
@@ -70,6 +70,5 @@ export type { string_camelCase, string_kebab_case, string_PascalCase, string_SCR
|
|
|
70
70
|
export { extractParametersFromPromptTemplate, renameParameter, renderPromptbookMermaid };
|
|
71
71
|
export { difference, intersection, union };
|
|
72
72
|
/**
|
|
73
|
-
* TODO: [🧠] Maybe create some indipendent package like `@promptbook/markdown-utils`
|
|
74
73
|
* Note: [🕙] It does not make sence to have simple lower / UPPER case normalization
|
|
75
74
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/node",
|
|
3
|
-
"version": "0.61.0-
|
|
3
|
+
"version": "0.61.0-4",
|
|
4
4
|
"description": "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.61.0-
|
|
52
|
+
"@promptbook/core": "0.61.0-4"
|
|
53
53
|
},
|
|
54
54
|
"main": "./umd/index.umd.js",
|
|
55
55
|
"module": "./esm/index.es.js",
|
package/umd/index.umd.js
CHANGED
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
// <- TODO: Add [emoji] + instructions ACRY when adding new reserved parameter
|
|
147
147
|
];
|
|
148
148
|
|
|
149
|
-
var PipelineCollection = [{title:"Prepare Knowledge from Markdown",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.61.0-
|
|
149
|
+
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"}];
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
152
|
* Prettify the html code
|
|
@@ -1552,7 +1552,7 @@
|
|
|
1552
1552
|
/**
|
|
1553
1553
|
* The version of the Promptbook library
|
|
1554
1554
|
*/
|
|
1555
|
-
var PROMPTBOOK_VERSION = '0.61.0-
|
|
1555
|
+
var PROMPTBOOK_VERSION = '0.61.0-3';
|
|
1556
1556
|
// TODO: !!!! List here all the versions and annotate + put into script
|
|
1557
1557
|
|
|
1558
1558
|
/**
|
|
@@ -70,6 +70,5 @@ export type { string_camelCase, string_kebab_case, string_PascalCase, string_SCR
|
|
|
70
70
|
export { extractParametersFromPromptTemplate, renameParameter, renderPromptbookMermaid };
|
|
71
71
|
export { difference, intersection, union };
|
|
72
72
|
/**
|
|
73
|
-
* TODO: [🧠] Maybe create some indipendent package like `@promptbook/markdown-utils`
|
|
74
73
|
* Note: [🕙] It does not make sence to have simple lower / UPPER case normalization
|
|
75
74
|
*/
|
|
File without changes
|
|
File without changes
|