@promptbook/browser 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 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/browser`
28
32
 
29
33
  - Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
@@ -52,6 +56,8 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
52
56
 
53
57
  ## 🤍 The Promptbook Whitepaper
54
58
 
59
+
60
+
55
61
  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.
56
62
 
57
63
  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:
@@ -72,6 +78,44 @@ In all of these situations, but especially in 3., the **✨ Promptbook can make
72
78
 
73
79
 
74
80
 
81
+ ## 💜 The Promptbook Project
82
+
83
+
84
+
85
+ <table>
86
+ <tbody>
87
+ <tr>
88
+ <td>Promptbook whitepaper</td>
89
+ <td>Basic motivations and problems which we are trying to solve</td>
90
+ <td rowspan=3>https://github.com/webgptorg/book</td>
91
+ </tr>
92
+ <tr>
93
+ <td>Promptbook <i>(system)</i></td>
94
+ <td>Promptbook ...</td>
95
+ </tr>
96
+ <tr>
97
+ <td>Book language</td>
98
+ <td>
99
+ 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
100
+ </td>
101
+ </tr>
102
+ <tr>
103
+ <td>Promptbook typescript project</td>
104
+ <td>Implementation of Promptbook in TypeScript published into multiple packages to NPM</td>
105
+ <td>https://github.com/webgptorg/promptbook</td>
106
+ </tr>
107
+ <tr>
108
+ <td>Promptbook studio</td>
109
+ <td>Promptbook studio</td>
110
+ <td rowspan=2>https://github.com/hejny/promptbook-studio</td>
111
+ </tr>
112
+ <tr>
113
+ <td>Promptbook miniapps</td>
114
+ <td>Promptbook miniapps</td>
115
+ </tr>
116
+ </tbody>
117
+ </table>
118
+
75
119
  ## 💙 Book language _(for prompt-engineer)_
76
120
 
77
121
  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.
@@ -81,6 +125,17 @@ Promptbook [pipelines](https://github.com/webgptorg/promptbook/discussions/64) a
81
125
  ```markdown
82
126
  # 🌟 My first Book
83
127
 
128
+ - INPUT PARAMETER {subject}
129
+ - OUTPUT PARAMETER {article}
130
+
131
+ ## Sample subject
132
+
133
+ > Promptbook
134
+
135
+ -> {subject}
136
+
137
+ ## Write an article
138
+
84
139
  - PERSONA Jane, marketing specialist with prior experience in writing articles about technology and artificial intelligence
85
140
  - KNOWLEDGE https://ptbk.io
86
141
  - KNOWLEDGE ./promptbook.pdf
@@ -88,7 +143,7 @@ Promptbook [pipelines](https://github.com/webgptorg/promptbook/discussions/64) a
88
143
  - EXPECT MAX 1 Paragraph
89
144
 
90
145
  > 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.
91
- > Look specifically at the impact of Promptbook on the AI industry.
146
+ > Look specifically at the impact of {subject} on the AI industry.
92
147
 
93
148
  -> {article}
94
149
  ```
@@ -135,6 +190,10 @@ Or you can install them separately:
135
190
 
136
191
  The following glossary is used to clarify certain concepts:
137
192
 
193
+ ### Basic terms
194
+
195
+
196
+
138
197
  ### Core concepts
139
198
 
140
199
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
package/esm/index.es.js CHANGED
@@ -5,7 +5,7 @@ import { isRunningInBrowser } from 'openai/core';
5
5
  /**
6
6
  * The version of the Promptbook library
7
7
  */
8
- var PROMPTBOOK_VERSION = '0.72.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/browser",
3
- "version": "0.73.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/browser.index.d.ts",
55
55
  "peerDependencies": {
56
- "@promptbook/core": "0.73.0"
56
+ "@promptbook/core": "0.74.0-0"
57
57
  },
58
58
  "dependencies": {
59
59
  "spacetrim": "0.11.59"
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.72.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
  /*! *****************************************************************************