@promptbook/cli 0.73.0 → 0.74.0-0
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 +60 -1
- package/esm/index.es.js +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +1 -1
package/README.md
CHANGED
|
@@ -24,6 +24,10 @@ Build responsible, controlled and transparent applications on top of LLM models!
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
+
<blockquote style="color: #ff8811">
|
|
28
|
+
<b>⚠ Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>.
|
|
29
|
+
</blockquote>
|
|
30
|
+
|
|
27
31
|
## 📦 Package `@promptbook/cli`
|
|
28
32
|
|
|
29
33
|
- Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
|
|
@@ -105,6 +109,8 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
|
|
|
105
109
|
|
|
106
110
|
## 🤍 The Promptbook Whitepaper
|
|
107
111
|
|
|
112
|
+
|
|
113
|
+
|
|
108
114
|
If you have a simple, single prompt for ChatGPT, GPT-4, Anthropic Claude, Google Gemini, Llama 3, or whatever, it doesn't matter how you integrate it. Whether it's calling a REST API directly, using the SDK, hardcoding the prompt into the source code, or importing a text file, the process remains the same.
|
|
109
115
|
|
|
110
116
|
But often you will struggle with the **limitations of LLMs**, such as **hallucinations, off-topic responses, poor quality output, language and prompt drift, word repetition repetition repetition repetition or misuse, lack of context, or just plain w𝒆𝐢rd resp0nses**. When this happens, you generally have three options:
|
|
@@ -125,6 +131,44 @@ In all of these situations, but especially in 3., the **✨ Promptbook can make
|
|
|
125
131
|
|
|
126
132
|
|
|
127
133
|
|
|
134
|
+
## 💜 The Promptbook Project
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
<table>
|
|
139
|
+
<tbody>
|
|
140
|
+
<tr>
|
|
141
|
+
<td>Promptbook whitepaper</td>
|
|
142
|
+
<td>Basic motivations and problems which we are trying to solve</td>
|
|
143
|
+
<td rowspan=3>https://github.com/webgptorg/book</td>
|
|
144
|
+
</tr>
|
|
145
|
+
<tr>
|
|
146
|
+
<td>Promptbook <i>(system)</i></td>
|
|
147
|
+
<td>Promptbook ...</td>
|
|
148
|
+
</tr>
|
|
149
|
+
<tr>
|
|
150
|
+
<td>Book language</td>
|
|
151
|
+
<td>
|
|
152
|
+
Book is a markdown-like language to define projects, pipelines, knowledge,... in the Promptbook system. It is designed to be understandable by non-programmers and non-technical people
|
|
153
|
+
</td>
|
|
154
|
+
</tr>
|
|
155
|
+
<tr>
|
|
156
|
+
<td>Promptbook typescript project</td>
|
|
157
|
+
<td>Implementation of Promptbook in TypeScript published into multiple packages to NPM</td>
|
|
158
|
+
<td>https://github.com/webgptorg/promptbook</td>
|
|
159
|
+
</tr>
|
|
160
|
+
<tr>
|
|
161
|
+
<td>Promptbook studio</td>
|
|
162
|
+
<td>Promptbook studio</td>
|
|
163
|
+
<td rowspan=2>https://github.com/hejny/promptbook-studio</td>
|
|
164
|
+
</tr>
|
|
165
|
+
<tr>
|
|
166
|
+
<td>Promptbook miniapps</td>
|
|
167
|
+
<td>Promptbook miniapps</td>
|
|
168
|
+
</tr>
|
|
169
|
+
</tbody>
|
|
170
|
+
</table>
|
|
171
|
+
|
|
128
172
|
## 💙 Book language _(for prompt-engineer)_
|
|
129
173
|
|
|
130
174
|
Promptbook [pipelines](https://github.com/webgptorg/promptbook/discussions/64) are written in markdown-like language called [Book](https://github.com/webgptorg/book). It is designed to be understandable by non-programmers and non-technical people.
|
|
@@ -134,6 +178,17 @@ Promptbook [pipelines](https://github.com/webgptorg/promptbook/discussions/64) a
|
|
|
134
178
|
```markdown
|
|
135
179
|
# 🌟 My first Book
|
|
136
180
|
|
|
181
|
+
- INPUT PARAMETER {subject}
|
|
182
|
+
- OUTPUT PARAMETER {article}
|
|
183
|
+
|
|
184
|
+
## Sample subject
|
|
185
|
+
|
|
186
|
+
> Promptbook
|
|
187
|
+
|
|
188
|
+
-> {subject}
|
|
189
|
+
|
|
190
|
+
## Write an article
|
|
191
|
+
|
|
137
192
|
- PERSONA Jane, marketing specialist with prior experience in writing articles about technology and artificial intelligence
|
|
138
193
|
- KNOWLEDGE https://ptbk.io
|
|
139
194
|
- KNOWLEDGE ./promptbook.pdf
|
|
@@ -141,7 +196,7 @@ Promptbook [pipelines](https://github.com/webgptorg/promptbook/discussions/64) a
|
|
|
141
196
|
- EXPECT MAX 1 Paragraph
|
|
142
197
|
|
|
143
198
|
> Write an article about the future of artificial intelligence in the next 10 years and how metalanguages will change the way AI is used in the world.
|
|
144
|
-
> Look specifically at the impact of
|
|
199
|
+
> Look specifically at the impact of {subject} on the AI industry.
|
|
145
200
|
|
|
146
201
|
-> {article}
|
|
147
202
|
```
|
|
@@ -188,6 +243,10 @@ Or you can install them separately:
|
|
|
188
243
|
|
|
189
244
|
The following glossary is used to clarify certain concepts:
|
|
190
245
|
|
|
246
|
+
### Basic terms
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
191
250
|
### Core concepts
|
|
192
251
|
|
|
193
252
|
- [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
|
package/esm/index.es.js
CHANGED
|
@@ -27,7 +27,7 @@ import { Converter } from 'showdown';
|
|
|
27
27
|
/**
|
|
28
28
|
* The version of the Promptbook library
|
|
29
29
|
*/
|
|
30
|
-
var PROMPTBOOK_VERSION = '0.
|
|
30
|
+
var PROMPTBOOK_VERSION = '0.73.0';
|
|
31
31
|
// TODO: [main] !!!! List here all the versions and annotate + put into script
|
|
32
32
|
|
|
33
33
|
/*! *****************************************************************************
|
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
/**
|
|
40
40
|
* The version of the Promptbook library
|
|
41
41
|
*/
|
|
42
|
-
var PROMPTBOOK_VERSION = '0.
|
|
42
|
+
var PROMPTBOOK_VERSION = '0.73.0';
|
|
43
43
|
// TODO: [main] !!!! List here all the versions and annotate + put into script
|
|
44
44
|
|
|
45
45
|
/*! *****************************************************************************
|