@promptbook/pdf 0.86.10 → 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
@@ -143,9 +143,7 @@ And **Promptbook.city** branded socials:
143
143
  _/Sub-brand for images and graphics generated via Promptbook prompting/_
144
144
 
145
145
  - [Instagram `@promptbook.city`](https://www.instagram.com/promptbook.city/)
146
- - [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
147
-
148
- ##
146
+ - [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
149
147
 
150
148
 
151
149
 
@@ -156,7 +154,9 @@ _/Sub-brand for images and graphics generated via Promptbook prompting/_
156
154
 
157
155
 
158
156
 
159
- Following is the documentation and blueprint of the Book language.
157
+ Following is the documentation and blueprint of the [Book language](https://github.com/webgptorg/book).
158
+
159
+ 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.
160
160
 
161
161
  ### Example
162
162
 
@@ -164,35 +164,56 @@ Following is the documentation and blueprint of the Book language.
164
164
  # 🌟 My first Book
165
165
 
166
166
  - BOOK VERSION 1.0.0
167
- - URL https://promptbook.studio/my-first-book/
167
+ - URL https://promptbook.studio/hello.book
168
+ - INPUT PARAMETER {topic}
169
+ - OUTPUT PARAMETER {article}
168
170
 
169
171
  # Write an article
170
172
 
171
173
  - PERSONA Jane, marketing specialist with prior experience in writing articles about technology and artificial intelligence
172
- - KNOWLEDGE https://ptbk.io
173
- - KNOWLEDGE ./promptbook.pdf
174
+ - KNOWLEDGE https://wikipedia.org/
175
+ - KNOWLEDGE ./journalist-ethics.pdf
174
176
  - EXPECT MIN 1 Sentence
175
- - EXPECT MAX 1 Paragraph
177
+ - EXPECT MAX 5 Pages
176
178
 
177
- > 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.
178
- > Look specifically at the impact of Promptbook on the AI industry.
179
+ > Write an article about {topic}
179
180
 
180
181
  -> {article}
181
182
  ```
182
183
 
184
+ Each part of the book defines one of 3 circles:
185
+
183
186
  ### **What:** Workflows, Tasks and Parameters
184
187
 
188
+ 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.
189
+
190
+ **Related commands:**
191
+
185
192
  - [PARAMETER](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PARAMETER.md)
186
193
 
187
194
  ### **Who:** Personas
188
195
 
196
+ 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.
197
+
198
+ 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",...`.
199
+
200
+ Personas can have access to different knowledge, tools and actions. They can also consult their work with other personas or user, if allowed.
201
+
202
+ **Related commands:**
203
+
189
204
  - [PERSONA](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PERSONA.md)
190
205
 
206
+
207
+
191
208
  ### **How:** Knowledge, Instruments and Actions
192
209
 
193
- - [KNOWLEDGE](https://github.com/webgptorg/promptbook/blob/main/documents/commands/KNOWLEDGE.md)
194
- - [INSTRUMENT](https://github.com/webgptorg/promptbook/blob/main/documents/commands/INSTRUMENT.md)
195
- - [ACTION](https://github.com/webgptorg/promptbook/blob/main/documents/commands/ACTION.md)
210
+ The resources used by the personas are used to do the work.
211
+
212
+ **Related commands:**
213
+
214
+ - [KNOWLEDGE](https://github.com/webgptorg/promptbook/blob/main/documents/commands/KNOWLEDGE.md) of documents, websites, and other resources
215
+ - [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.
216
+ - [ACTION](https://github.com/webgptorg/promptbook/blob/main/documents/commands/ACTION.md) for actions like sending emails, creating files, ending a workflow, etc.
196
217
 
197
218
  ### General principles of book language
198
219
 
@@ -283,35 +304,7 @@ The following glossary is used to clarify certain concepts:
283
304
 
284
305
  _Note: Thos section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
285
306
 
286
- #### Promptbook core
287
-
288
- - **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).
289
- - **Jobs**
290
- - **Task**
291
- - **Subtask**
292
- - **Workforce**
293
- - **Persona**
294
- - **Team**
295
- - **Role**
296
- - **Knowledge**
297
- - **Public**
298
- - **Private**
299
- - **Protected**
300
- - **Instruments**
301
- - **Actions**
302
-
303
- #### Book language
304
-
305
- - **Book file**
306
- - **Section**
307
- - **Heading**
308
- - **Description**
309
- - **Command**
310
- - **Block**
311
- - **Return statement**
312
- - **Comment**
313
- - **Import**
314
- - **Scope**
307
+
315
308
 
316
309
  #### 💯 Core concepts
317
310