@promptbook/node 0.86.8 β†’ 0.86.22

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
@@ -145,9 +145,7 @@ And **Promptbook.city** branded socials:
145
145
  _/Sub-brand for images and graphics generated via Promptbook prompting/_
146
146
 
147
147
  - [Instagram `@promptbook.city`](https://www.instagram.com/promptbook.city/)
148
- - [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
149
-
150
- ##
148
+ - [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
151
149
 
152
150
 
153
151
 
@@ -158,7 +156,9 @@ _/Sub-brand for images and graphics generated via Promptbook prompting/_
158
156
 
159
157
 
160
158
 
161
- Following is the documentation and blueprint of the Book language.
159
+ Following is the documentation and blueprint of the [Book language](https://github.com/webgptorg/book).
160
+
161
+ Book is a language that can be used to write AI applications, agents, workflows, automations, knowledgebases, translators, sheet processors, email automations and more. It allows you to harness the power of AI models in human-like terms, without the need to know the specifics and technicalities of the models.
162
162
 
163
163
  ### Example
164
164
 
@@ -166,35 +166,56 @@ Following is the documentation and blueprint of the Book language.
166
166
  # 🌟 My first Book
167
167
 
168
168
  - BOOK VERSION 1.0.0
169
- - URL https://promptbook.studio/my-first-book/
169
+ - URL https://promptbook.studio/hello.book
170
+ - INPUT PARAMETER {topic}
171
+ - OUTPUT PARAMETER {article}
170
172
 
171
173
  # Write an article
172
174
 
173
175
  - PERSONA Jane, marketing specialist with prior experience in writing articles about technology and artificial intelligence
174
- - KNOWLEDGE https://ptbk.io
175
- - KNOWLEDGE ./promptbook.pdf
176
+ - KNOWLEDGE https://wikipedia.org/
177
+ - KNOWLEDGE ./journalist-ethics.pdf
176
178
  - EXPECT MIN 1 Sentence
177
- - EXPECT MAX 1 Paragraph
179
+ - EXPECT MAX 5 Pages
178
180
 
179
- > 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.
180
- > Look specifically at the impact of Promptbook on the AI industry.
181
+ > Write an article about {topic}
181
182
 
182
183
  -> {article}
183
184
  ```
184
185
 
186
+ Each part of the book defines one of 3 circles:
187
+
185
188
  ### **What:** Workflows, Tasks and Parameters
186
189
 
190
+ What work needs to be done. Each book defines a workflow, which is one or more tasks. Each workflow has a fixed input and output. For example, you have a book that generates an article from a topic. Once it generates an article about AI, once about marketing, once about cooking. The workflow (= your AI program) is the same, only the input and output change.
191
+
192
+ **Related commands:**
193
+
187
194
  - [PARAMETER](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PARAMETER.md)
188
195
 
189
196
  ### **Who:** Personas
190
197
 
198
+ Who does the work. Each task is performed by a persona. A persona is a description of your virtual employee. It is a higher abstraction than the model, tokens, temperature, top-k, top-p and other model parameters.
199
+
200
+ You can describe what you want in human language like `Jane, creative writer with a sense of sharp humour` instead of `gpt-4-2024-13-31, temperature 1.2, top-k 40, STOP token ".\n",...`.
201
+
202
+ Personas can have access to different knowledge, tools and actions. They can also consult their work with other personas or user, if allowed.
203
+
204
+ **Related commands:**
205
+
191
206
  - [PERSONA](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PERSONA.md)
192
207
 
208
+
209
+
193
210
  ### **How:** Knowledge, Instruments and Actions
194
211
 
195
- - [KNOWLEDGE](https://github.com/webgptorg/promptbook/blob/main/documents/commands/KNOWLEDGE.md)
196
- - [INSTRUMENT](https://github.com/webgptorg/promptbook/blob/main/documents/commands/INSTRUMENT.md)
197
- - [ACTION](https://github.com/webgptorg/promptbook/blob/main/documents/commands/ACTION.md)
212
+ The resources used by the personas are used to do the work.
213
+
214
+ **Related commands:**
215
+
216
+ - [KNOWLEDGE](https://github.com/webgptorg/promptbook/blob/main/documents/commands/KNOWLEDGE.md) of documents, websites, and other resources
217
+ - [INSTRUMENT](https://github.com/webgptorg/promptbook/blob/main/documents/commands/INSTRUMENT.md) for real-time data like time, location, weather, stock prices, searching the internet, calculations, etc.
218
+ - [ACTION](https://github.com/webgptorg/promptbook/blob/main/documents/commands/ACTION.md) for actions like sending emails, creating files, ending a workflow, etc.
198
219
 
199
220
  ### General principles of book language
200
221
 
@@ -285,35 +306,7 @@ The following glossary is used to clarify certain concepts:
285
306
 
286
307
  _Note: Thos section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
287
308
 
288
- #### Promptbook core
289
-
290
- - **Organization** _(legacy name collection)_ group jobs, workforce, knowledge, instruments, and actions into one package. Entities in one organization can share resources (= import resources from each other).
291
- - **Jobs**
292
- - **Task**
293
- - **Subtask**
294
- - **Workforce**
295
- - **Persona**
296
- - **Team**
297
- - **Role**
298
- - **Knowledge**
299
- - **Public**
300
- - **Private**
301
- - **Protected**
302
- - **Instruments**
303
- - **Actions**
304
-
305
- #### Book language
306
-
307
- - **Book file**
308
- - **Section**
309
- - **Heading**
310
- - **Description**
311
- - **Command**
312
- - **Block**
313
- - **Return statement**
314
- - **Comment**
315
- - **Import**
316
- - **Scope**
309
+
317
310
 
318
311
  #### πŸ’― Core concepts
319
312
 
@@ -410,7 +403,7 @@ See [CHANGELOG.md](./CHANGELOG.md)
410
403
 
411
404
  ## πŸ“œ License
412
405
 
413
- <p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a property="dct:title" rel="cc:attributionURL" href="https://github.com/webgptorg/promptbook">Promptbook</a> by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://github.com/hejny/">Pavol HejnΓ½</a> is licensed under <a href="https://creativecommons.org/licenses/by/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY 4.0</a></p>
406
+ Promptbook project is under [BUSL 1.1 is an SPDX license](https://spdx.org/licenses/BUSL-1.1.html)
414
407
 
415
408
  ## 🎯 Todos
416
409
 
@@ -418,7 +411,6 @@ See [TODO.md](./TODO.md)
418
411
 
419
412
 
420
413
 
421
-
422
414
  ## 🀝 Partners
423
415
 
424
416
  <div style="display: flex; align-items: center; gap: 20px;">
@@ -435,6 +427,6 @@ See [TODO.md](./TODO.md)
435
427
 
436
428
  ## πŸ–‹οΈ Contributing
437
429
 
438
- I am open to pull requests, feedback, and suggestions. Or if you like this utility, you can [β˜• buy me a coffee](https://www.buymeacoffee.com/hejny) or [donate via cryptocurrencies](https://github.com/hejny/hejny/blob/main/documents/crypto.md).
430
+ We are open to pull requests, feedback, and suggestions.
439
431
 
440
- You can also ⭐ star the promptbook package, [follow me on GitHub](https://github.com/hejny) or [various other social networks](https://www.pavolhejny.com/contact/).
432
+ You can also ⭐ star the project, [follow us on GitHub](https://github.com/hejny) or [various other social networks](https://www.pavolhejny.com/contact/).