@promptbook/legacy-documents 0.74.0-5 → 0.74.0-6

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
@@ -54,8 +54,6 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
54
54
 
55
55
  ## 🤍 The Promptbook Whitepaper
56
56
 
57
-
58
-
59
57
  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.
60
58
 
61
59
  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:
@@ -124,23 +122,17 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
124
122
 
125
123
  ## 💙 Book language _(for prompt-engineer)_
126
124
 
127
- 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.
128
-
129
125
 
130
126
 
131
- ```markdown
132
- # 🌟 My first Book
133
127
 
134
- - INPUT PARAMETER {subject}
135
- - OUTPUT PARAMETER {article}
128
+ ## 💙 The blueprint of book language
136
129
 
137
- ## Sample subject
130
+ Following is the documentation and blueprint of the Book language.
138
131
 
139
- > Promptbook
132
+ ### Example
140
133
 
141
- -> {subject}
142
-
143
- ## Write an article
134
+ ```markdown
135
+ # 🌟 My first Book
144
136
 
145
137
  - PERSONA Jane, marketing specialist with prior experience in writing articles about technology and artificial intelligence
146
138
  - KNOWLEDGE https://ptbk.io
@@ -149,11 +141,65 @@ Promptbook [pipelines](https://github.com/webgptorg/promptbook/discussions/64) a
149
141
  - EXPECT MAX 1 Paragraph
150
142
 
151
143
  > 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.
152
- > Look specifically at the impact of {subject} on the AI industry.
144
+ > Look specifically at the impact of Promptbook on the AI industry.
153
145
 
154
146
  -> {article}
155
147
  ```
156
148
 
149
+ ### Goals and principles of book language
150
+
151
+ File is designed to be easy to read and write. It is strict subset of markdown. It is designed to be understandable by both humans and machines and without specific knowledge of the language.
152
+
153
+ It has file with `.ptbk.md` or `.book` extension with `UTF-8` non BOM encoding.
154
+
155
+ As it is source code, it can leverage all the features of version control systems like git and does not suffer from the problems of binary formats, proprietary formats, or no-code solutions.
156
+
157
+ But unlike programming languages, it is designed to be understandable by non-programmers and non-technical people.
158
+
159
+ ### Structure
160
+
161
+ Book is divided into sections. Each section starts with heading. The language itself is not sensitive to the type of heading _(`h1`, `h2`, `h3`, ...)_ but it is recommended to use `h1` for header section and `h2` for other sections.
162
+
163
+ ### Header
164
+
165
+ Header is the first section of the book. It contains metadata about the pipeline. It is recommended to use `h1` heading for header section but it is not required.
166
+
167
+ ### Parameter
168
+
169
+ Foo bar
170
+
171
+ #### Parameter names
172
+
173
+ Reserved words:
174
+
175
+ - _each command_ like `PERSONA`, `EXPECT`, `KNOWLEDGE`, etc.
176
+ - `content`
177
+ - `context`
178
+ - `knowledge`
179
+ - `examples`
180
+ - `modelName`
181
+ - `currentDate`
182
+
183
+ #### Parameter notation
184
+
185
+ ### Template
186
+
187
+ Todo todo
188
+
189
+ ### Command
190
+
191
+ Todo todo
192
+
193
+ ### Block
194
+
195
+ Todo todo
196
+
197
+ ### Return parameter
198
+
199
+ ### Examples
200
+
201
+
202
+
157
203
  ## 📦 Packages _(for developers)_
158
204
 
159
205
  This library is divided into several packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
package/esm/index.es.js CHANGED
@@ -23,7 +23,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
23
23
  *
24
24
  * @see https://github.com/webgptorg/promptbook
25
25
  */
26
- var PROMPTBOOK_ENGINE_VERSION = '0.74.0-4';
26
+ var PROMPTBOOK_ENGINE_VERSION = '0.74.0-5';
27
27
  /**
28
28
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
29
29
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/legacy-documents",
3
- "version": "0.74.0-5",
3
+ "version": "0.74.0-6",
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/legacy-documents.index.d.ts",
55
55
  "peerDependencies": {
56
- "@promptbook/core": "0.74.0-5"
56
+ "@promptbook/core": "0.74.0-6"
57
57
  },
58
58
  "dependencies": {
59
59
  "colors": "1.4.0",
package/umd/index.umd.js CHANGED
@@ -23,7 +23,7 @@
23
23
  *
24
24
  * @see https://github.com/webgptorg/promptbook
25
25
  */
26
- var PROMPTBOOK_ENGINE_VERSION = '0.74.0-4';
26
+ var PROMPTBOOK_ENGINE_VERSION = '0.74.0-5';
27
27
  /**
28
28
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
29
29
  */