@promptbook/utils 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/utils`
|
|
28
32
|
|
|
29
33
|
- Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
|
|
@@ -169,6 +173,8 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
|
|
|
169
173
|
|
|
170
174
|
## 🤍 The Promptbook Whitepaper
|
|
171
175
|
|
|
176
|
+
|
|
177
|
+
|
|
172
178
|
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.
|
|
173
179
|
|
|
174
180
|
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:
|
|
@@ -189,6 +195,44 @@ In all of these situations, but especially in 3., the **✨ Promptbook can make
|
|
|
189
195
|
|
|
190
196
|
|
|
191
197
|
|
|
198
|
+
## 💜 The Promptbook Project
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
<table>
|
|
203
|
+
<tbody>
|
|
204
|
+
<tr>
|
|
205
|
+
<td>Promptbook whitepaper</td>
|
|
206
|
+
<td>Basic motivations and problems which we are trying to solve</td>
|
|
207
|
+
<td rowspan=3>https://github.com/webgptorg/book</td>
|
|
208
|
+
</tr>
|
|
209
|
+
<tr>
|
|
210
|
+
<td>Promptbook <i>(system)</i></td>
|
|
211
|
+
<td>Promptbook ...</td>
|
|
212
|
+
</tr>
|
|
213
|
+
<tr>
|
|
214
|
+
<td>Book language</td>
|
|
215
|
+
<td>
|
|
216
|
+
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
|
|
217
|
+
</td>
|
|
218
|
+
</tr>
|
|
219
|
+
<tr>
|
|
220
|
+
<td>Promptbook typescript project</td>
|
|
221
|
+
<td>Implementation of Promptbook in TypeScript published into multiple packages to NPM</td>
|
|
222
|
+
<td>https://github.com/webgptorg/promptbook</td>
|
|
223
|
+
</tr>
|
|
224
|
+
<tr>
|
|
225
|
+
<td>Promptbook studio</td>
|
|
226
|
+
<td>Promptbook studio</td>
|
|
227
|
+
<td rowspan=2>https://github.com/hejny/promptbook-studio</td>
|
|
228
|
+
</tr>
|
|
229
|
+
<tr>
|
|
230
|
+
<td>Promptbook miniapps</td>
|
|
231
|
+
<td>Promptbook miniapps</td>
|
|
232
|
+
</tr>
|
|
233
|
+
</tbody>
|
|
234
|
+
</table>
|
|
235
|
+
|
|
192
236
|
## 💙 Book language _(for prompt-engineer)_
|
|
193
237
|
|
|
194
238
|
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.
|
|
@@ -198,6 +242,17 @@ Promptbook [pipelines](https://github.com/webgptorg/promptbook/discussions/64) a
|
|
|
198
242
|
```markdown
|
|
199
243
|
# 🌟 My first Book
|
|
200
244
|
|
|
245
|
+
- INPUT PARAMETER {subject}
|
|
246
|
+
- OUTPUT PARAMETER {article}
|
|
247
|
+
|
|
248
|
+
## Sample subject
|
|
249
|
+
|
|
250
|
+
> Promptbook
|
|
251
|
+
|
|
252
|
+
-> {subject}
|
|
253
|
+
|
|
254
|
+
## Write an article
|
|
255
|
+
|
|
201
256
|
- PERSONA Jane, marketing specialist with prior experience in writing articles about technology and artificial intelligence
|
|
202
257
|
- KNOWLEDGE https://ptbk.io
|
|
203
258
|
- KNOWLEDGE ./promptbook.pdf
|
|
@@ -205,7 +260,7 @@ Promptbook [pipelines](https://github.com/webgptorg/promptbook/discussions/64) a
|
|
|
205
260
|
- EXPECT MAX 1 Paragraph
|
|
206
261
|
|
|
207
262
|
> 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.
|
|
208
|
-
> Look specifically at the impact of
|
|
263
|
+
> Look specifically at the impact of {subject} on the AI industry.
|
|
209
264
|
|
|
210
265
|
-> {article}
|
|
211
266
|
```
|
|
@@ -252,6 +307,10 @@ Or you can install them separately:
|
|
|
252
307
|
|
|
253
308
|
The following glossary is used to clarify certain concepts:
|
|
254
309
|
|
|
310
|
+
### Basic terms
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
255
314
|
### Core concepts
|
|
256
315
|
|
|
257
316
|
- [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
|
package/esm/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import { basename } from 'path';
|
|
|
5
5
|
/**
|
|
6
6
|
* The version of the Promptbook library
|
|
7
7
|
*/
|
|
8
|
-
var PROMPTBOOK_VERSION = '0.
|
|
8
|
+
var PROMPTBOOK_VERSION = '0.73.0';
|
|
9
9
|
// TODO: [main] !!!! List here all the versions and annotate + put into script
|
|
10
10
|
|
|
11
11
|
/*! *****************************************************************************
|
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
/**
|
|
13
13
|
* The version of the Promptbook library
|
|
14
14
|
*/
|
|
15
|
-
var PROMPTBOOK_VERSION = '0.
|
|
15
|
+
var PROMPTBOOK_VERSION = '0.73.0';
|
|
16
16
|
// TODO: [main] !!!! List here all the versions and annotate + put into script
|
|
17
17
|
|
|
18
18
|
/*! *****************************************************************************
|