@promptbook/openai 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 +2 -2
- 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/openai`
|
|
28
32
|
|
|
29
33
|
- Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
|
|
@@ -224,6 +228,8 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
|
|
|
224
228
|
|
|
225
229
|
## 🤍 The Promptbook Whitepaper
|
|
226
230
|
|
|
231
|
+
|
|
232
|
+
|
|
227
233
|
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.
|
|
228
234
|
|
|
229
235
|
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:
|
|
@@ -244,6 +250,44 @@ In all of these situations, but especially in 3., the **✨ Promptbook can make
|
|
|
244
250
|
|
|
245
251
|
|
|
246
252
|
|
|
253
|
+
## 💜 The Promptbook Project
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
<table>
|
|
258
|
+
<tbody>
|
|
259
|
+
<tr>
|
|
260
|
+
<td>Promptbook whitepaper</td>
|
|
261
|
+
<td>Basic motivations and problems which we are trying to solve</td>
|
|
262
|
+
<td rowspan=3>https://github.com/webgptorg/book</td>
|
|
263
|
+
</tr>
|
|
264
|
+
<tr>
|
|
265
|
+
<td>Promptbook <i>(system)</i></td>
|
|
266
|
+
<td>Promptbook ...</td>
|
|
267
|
+
</tr>
|
|
268
|
+
<tr>
|
|
269
|
+
<td>Book language</td>
|
|
270
|
+
<td>
|
|
271
|
+
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
|
|
272
|
+
</td>
|
|
273
|
+
</tr>
|
|
274
|
+
<tr>
|
|
275
|
+
<td>Promptbook typescript project</td>
|
|
276
|
+
<td>Implementation of Promptbook in TypeScript published into multiple packages to NPM</td>
|
|
277
|
+
<td>https://github.com/webgptorg/promptbook</td>
|
|
278
|
+
</tr>
|
|
279
|
+
<tr>
|
|
280
|
+
<td>Promptbook studio</td>
|
|
281
|
+
<td>Promptbook studio</td>
|
|
282
|
+
<td rowspan=2>https://github.com/hejny/promptbook-studio</td>
|
|
283
|
+
</tr>
|
|
284
|
+
<tr>
|
|
285
|
+
<td>Promptbook miniapps</td>
|
|
286
|
+
<td>Promptbook miniapps</td>
|
|
287
|
+
</tr>
|
|
288
|
+
</tbody>
|
|
289
|
+
</table>
|
|
290
|
+
|
|
247
291
|
## 💙 Book language _(for prompt-engineer)_
|
|
248
292
|
|
|
249
293
|
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.
|
|
@@ -253,6 +297,17 @@ Promptbook [pipelines](https://github.com/webgptorg/promptbook/discussions/64) a
|
|
|
253
297
|
```markdown
|
|
254
298
|
# 🌟 My first Book
|
|
255
299
|
|
|
300
|
+
- INPUT PARAMETER {subject}
|
|
301
|
+
- OUTPUT PARAMETER {article}
|
|
302
|
+
|
|
303
|
+
## Sample subject
|
|
304
|
+
|
|
305
|
+
> Promptbook
|
|
306
|
+
|
|
307
|
+
-> {subject}
|
|
308
|
+
|
|
309
|
+
## Write an article
|
|
310
|
+
|
|
256
311
|
- PERSONA Jane, marketing specialist with prior experience in writing articles about technology and artificial intelligence
|
|
257
312
|
- KNOWLEDGE https://ptbk.io
|
|
258
313
|
- KNOWLEDGE ./promptbook.pdf
|
|
@@ -260,7 +315,7 @@ Promptbook [pipelines](https://github.com/webgptorg/promptbook/discussions/64) a
|
|
|
260
315
|
- EXPECT MAX 1 Paragraph
|
|
261
316
|
|
|
262
317
|
> 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.
|
|
263
|
-
> Look specifically at the impact of
|
|
318
|
+
> Look specifically at the impact of {subject} on the AI industry.
|
|
264
319
|
|
|
265
320
|
-> {article}
|
|
266
321
|
```
|
|
@@ -307,6 +362,10 @@ Or you can install them separately:
|
|
|
307
362
|
|
|
308
363
|
The following glossary is used to clarify certain concepts:
|
|
309
364
|
|
|
365
|
+
### Basic terms
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
310
369
|
### Core concepts
|
|
311
370
|
|
|
312
371
|
- [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
|
package/esm/index.es.js
CHANGED
|
@@ -6,7 +6,7 @@ import OpenAI from 'openai';
|
|
|
6
6
|
/**
|
|
7
7
|
* The version of the Promptbook library
|
|
8
8
|
*/
|
|
9
|
-
var PROMPTBOOK_VERSION = '0.
|
|
9
|
+
var PROMPTBOOK_VERSION = '0.73.0';
|
|
10
10
|
// TODO: [main] !!!! List here all the versions and annotate + put into script
|
|
11
11
|
|
|
12
12
|
/*! *****************************************************************************
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/openai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.74.0-0",
|
|
4
4
|
"description": "Supercharge your use of large language models",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"module": "./esm/index.es.js",
|
|
54
54
|
"typings": "./esm/typings/src/_packages/openai.index.d.ts",
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@promptbook/core": "0.
|
|
56
|
+
"@promptbook/core": "0.74.0-0"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"colors": "1.4.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/**
|
|
15
15
|
* The version of the Promptbook library
|
|
16
16
|
*/
|
|
17
|
-
var PROMPTBOOK_VERSION = '0.
|
|
17
|
+
var PROMPTBOOK_VERSION = '0.73.0';
|
|
18
18
|
// TODO: [main] !!!! List here all the versions and annotate + put into script
|
|
19
19
|
|
|
20
20
|
/*! *****************************************************************************
|