@promptbook/cli 0.44.0-22 → 0.44.0-23
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/README.md
CHANGED
|
@@ -434,8 +434,7 @@ Internally it can have multiple formats:
|
|
|
434
434
|
### Promptbook **Library**
|
|
435
435
|
|
|
436
436
|
Library of all promptbooks used in your application.
|
|
437
|
-
|
|
438
|
-
<!-- TODO: !!! Write more -->
|
|
437
|
+
Each promptbook is a separate `.ptbk.md` file with unique `PROMPTBOOK URL`. Theese urls are used to reference promptbooks in other promptbooks or in the application code.
|
|
439
438
|
|
|
440
439
|
### Prompt Result
|
|
441
440
|
|
|
@@ -612,6 +611,30 @@ npm install --save @promptbook/wizzard
|
|
|
612
611
|
- [Simple usage](./samples/usage/simple-script)
|
|
613
612
|
- [Usage with client and remote server](./samples/usage/remote)
|
|
614
613
|
|
|
614
|
+
## ➕➖ When to use Promptbook?
|
|
615
|
+
|
|
616
|
+
### ➕ When to use
|
|
617
|
+
|
|
618
|
+
- When you are writing app that generates complex things via LLM - like **websites, articles, presentations, code, stories, songs**,...
|
|
619
|
+
- When you want to **separate code from text prompts**
|
|
620
|
+
- When you want to describe **complex prompt pipelines** and don't want to do it in the code
|
|
621
|
+
- When you want to **orchestrate multiple prompts** together
|
|
622
|
+
- When you want to **reuse** parts of prompts in multiple places
|
|
623
|
+
- When you want to **version** your prompts and **test multiple versions**
|
|
624
|
+
- When you want to **log** the execution of prompts and backtrace the issues
|
|
625
|
+
|
|
626
|
+
### ➖ When not to use
|
|
627
|
+
|
|
628
|
+
- When you are writing just a simple chatbot without any extra logic, just system messages
|
|
629
|
+
|
|
630
|
+
## 🐜 Known issues
|
|
631
|
+
|
|
632
|
+
<!-- TODO: -->
|
|
633
|
+
|
|
634
|
+
## 🧼 Intentionally not implemented features
|
|
635
|
+
|
|
636
|
+
<!-- TODO: -->
|
|
637
|
+
|
|
615
638
|
## ❔ FAQ
|
|
616
639
|
|
|
617
640
|
If you have a question [start a discussion](https://github.com/webgptorg/promptbook/discussions/), [open an issue](https://github.com/webgptorg/promptbook/issues) or [write me an email](https://www.pavolhejny.com/contact).
|
|
@@ -642,14 +665,14 @@ Include:
|
|
|
642
665
|
GPTs are chat assistants that can be assigned to specific tasks and materials. But they are still chat assistants. Promptbooks are a way to orchestrate many more predefined tasks to have much tighter control over the process. Promptbooks are not a good technology for creating human-like chatbots, GPTs are not a good technology for creating outputs with specific requirements.
|
|
643
666
|
|
|
644
667
|
<!--
|
|
645
|
-
TODO
|
|
668
|
+
TODO:
|
|
646
669
|
### Promptbooks vs. Semantic Kernel
|
|
647
670
|
|
|
648
671
|
|
|
649
672
|
-->
|
|
650
673
|
|
|
651
674
|
<!--
|
|
652
|
-
TODO:
|
|
675
|
+
TODO: !
|
|
653
676
|
### Promptbooks vs. Langtail
|
|
654
677
|
|
|
655
678
|
|
|
@@ -692,7 +715,7 @@ TODO: (Maybe)
|
|
|
692
715
|
|
|
693
716
|
|
|
694
717
|
|
|
695
|
-
|
|
718
|
+
!
|
|
696
719
|
|
|
697
720
|
|
|
698
721
|
|
|
@@ -717,7 +740,7 @@ See [CHANGELOG.md](./CHANGELOG.md)
|
|
|
717
740
|
|
|
718
741
|
## 📜 License
|
|
719
742
|
|
|
720
|
-
<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a property="dct:title" rel="cc:attributionURL" href="https://github.com/webgptorg/promptbook">Promptbook</a> by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://github.com/hejny/">Pavol Hejný</a> is licensed under <a href="https://creativecommons.org/licenses/by/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY 4.0
|
|
743
|
+
<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a property="dct:title" rel="cc:attributionURL" href="https://github.com/webgptorg/promptbook">Promptbook</a> by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://github.com/hejny/">Pavol Hejný</a> is licensed under <a href="https://creativecommons.org/licenses/by/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY 4.0</a></p>
|
|
721
744
|
|
|
722
745
|
<!--Contributing-->
|
|
723
746
|
<!--⚠️WARNING: This section was generated by https://github.com/hejny/batch-project-editor/blob/main/src/workflows/810-contributing/contributing.ts so every manual change will be overwritten.-->
|
package/esm/index.es.js
CHANGED
|
@@ -143,7 +143,7 @@ new Function("\n try {\n if (typeof WorkerGlobalScope !== 'undefined'
|
|
|
143
143
|
/**
|
|
144
144
|
* The version of the Promptbook library
|
|
145
145
|
*/
|
|
146
|
-
var PROMPTBOOK_VERSION = '0.44.0-
|
|
146
|
+
var PROMPTBOOK_VERSION = '0.44.0-22';
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* This error indicates that the promptbook in a markdown format cannot be parsed into a valid promptbook object
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { spaceTrim } from 'spacetrim';
|
|
1
2
|
import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptbookString';
|
|
2
3
|
import { parseNumber } from '../conversion/utils/parseNumber';
|
|
3
4
|
import { assertsExecutionSuccessful } from '../execution/assertsExecutionSuccessful';
|
|
@@ -44,7 +45,7 @@ import { unwrapResult } from '../utils/unwrapResult';
|
|
|
44
45
|
export { assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, extractAllBlocksFromMarkdown, // <- [🌻]
|
|
45
46
|
extractAllListItemsFromMarkdown, extractBlock, // <- [🌻]
|
|
46
47
|
extractOneBlockFromMarkdown, isPassingExpectations, isValidJsonString, parseNumber, // <- [🌻]
|
|
47
|
-
prettifyPromptbookString, removeContentComments, removeEmojis, removeMarkdownFormatting, removeQuotes, replaceParameters, trimCodeBlock, trimEndOfCodeBlock, unwrapResult, };
|
|
48
|
+
prettifyPromptbookString, removeContentComments, removeEmojis, removeMarkdownFormatting, removeQuotes, replaceParameters, spaceTrim, trimCodeBlock, trimEndOfCodeBlock, unwrapResult, };
|
|
48
49
|
export { countCharacters, countLines, countPages, countParagraphs, countSentences, CountUtils, countWords };
|
|
49
50
|
export { splitIntoSentences };
|
|
50
51
|
export declare const normalizeTo: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/cli",
|
|
3
|
-
"version": "0.44.0-
|
|
3
|
+
"version": "0.44.0-23",
|
|
4
4
|
"description": "Library to supercharge your use of large language models",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"waitasecond": "1.11.33"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@promptbook/core": "0.44.0-
|
|
45
|
+
"@promptbook/core": "0.44.0-23"
|
|
46
46
|
},
|
|
47
47
|
"main": "./umd/index.umd.js",
|
|
48
48
|
"module": "./esm/index.es.js",
|
package/umd/index.umd.js
CHANGED
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
/**
|
|
147
147
|
* The version of the Promptbook library
|
|
148
148
|
*/
|
|
149
|
-
var PROMPTBOOK_VERSION = '0.44.0-
|
|
149
|
+
var PROMPTBOOK_VERSION = '0.44.0-22';
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
152
|
* This error indicates that the promptbook in a markdown format cannot be parsed into a valid promptbook object
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { spaceTrim } from 'spacetrim';
|
|
1
2
|
import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptbookString';
|
|
2
3
|
import { parseNumber } from '../conversion/utils/parseNumber';
|
|
3
4
|
import { assertsExecutionSuccessful } from '../execution/assertsExecutionSuccessful';
|
|
@@ -44,7 +45,7 @@ import { unwrapResult } from '../utils/unwrapResult';
|
|
|
44
45
|
export { assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, extractAllBlocksFromMarkdown, // <- [🌻]
|
|
45
46
|
extractAllListItemsFromMarkdown, extractBlock, // <- [🌻]
|
|
46
47
|
extractOneBlockFromMarkdown, isPassingExpectations, isValidJsonString, parseNumber, // <- [🌻]
|
|
47
|
-
prettifyPromptbookString, removeContentComments, removeEmojis, removeMarkdownFormatting, removeQuotes, replaceParameters, trimCodeBlock, trimEndOfCodeBlock, unwrapResult, };
|
|
48
|
+
prettifyPromptbookString, removeContentComments, removeEmojis, removeMarkdownFormatting, removeQuotes, replaceParameters, spaceTrim, trimCodeBlock, trimEndOfCodeBlock, unwrapResult, };
|
|
48
49
|
export { countCharacters, countLines, countPages, countParagraphs, countSentences, CountUtils, countWords };
|
|
49
50
|
export { splitIntoSentences };
|
|
50
51
|
export declare const normalizeTo: {
|