@promptbook/cli 0.74.0-0 → 0.74.0-3

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.
Files changed (35) hide show
  1. package/README.md +84 -16
  2. package/esm/index.es.js +390 -374
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/typings/src/_packages/anthropic-claude.index.d.ts +2 -2
  5. package/esm/typings/src/_packages/azure-openai.index.d.ts +2 -2
  6. package/esm/typings/src/_packages/browser.index.d.ts +2 -2
  7. package/esm/typings/src/_packages/cli.index.d.ts +2 -2
  8. package/esm/typings/src/_packages/core.index.d.ts +2 -2
  9. package/esm/typings/src/_packages/documents.index.d.ts +2 -2
  10. package/esm/typings/src/_packages/execute-javascript.index.d.ts +2 -2
  11. package/esm/typings/src/_packages/fake-llm.index.d.ts +2 -2
  12. package/esm/typings/src/_packages/langtail.index.d.ts +2 -2
  13. package/esm/typings/src/_packages/legacy-documents.index.d.ts +2 -2
  14. package/esm/typings/src/_packages/markdown-utils.index.d.ts +2 -2
  15. package/esm/typings/src/_packages/node.index.d.ts +2 -2
  16. package/esm/typings/src/_packages/openai.index.d.ts +2 -2
  17. package/esm/typings/src/_packages/pdf.index.d.ts +2 -2
  18. package/esm/typings/src/_packages/remote-client.index.d.ts +2 -2
  19. package/esm/typings/src/_packages/remote-server.index.d.ts +2 -2
  20. package/esm/typings/src/_packages/utils.index.d.ts +2 -2
  21. package/esm/typings/src/_packages/website-crawler.index.d.ts +2 -2
  22. package/esm/typings/src/cli/cli-commands/make.d.ts +0 -1
  23. package/esm/typings/src/cli/cli-commands/run.d.ts +14 -0
  24. package/esm/typings/src/cli/promptbookCli.d.ts +1 -0
  25. package/esm/typings/src/cli/test/ptbk.d.ts +4 -1
  26. package/esm/typings/src/commands/{PROMPTBOOK_VERSION/PromptbookVersionCommand.d.ts → BOOK_VERSION/BookVersionCommand.d.ts} +4 -4
  27. package/esm/typings/src/commands/BOOK_VERSION/bookVersionCommandParser.d.ts +9 -0
  28. package/esm/typings/src/commands/_common/types/CommandParser.d.ts +1 -1
  29. package/esm/typings/src/commands/index.d.ts +1 -1
  30. package/esm/typings/src/version.d.ts +13 -2
  31. package/package.json +6 -4
  32. package/umd/index.umd.js +395 -378
  33. package/umd/index.umd.js.map +1 -1
  34. package/esm/typings/src/commands/PROMPTBOOK_VERSION/promptbookVersionCommandParser.d.ts +0 -9
  35. /package/esm/typings/src/commands/{PROMPTBOOK_VERSION/promptbookVersionCommand.test.d.ts → BOOK_VERSION/bookVersionCommand.test.d.ts} +0 -0
package/README.md CHANGED
@@ -131,44 +131,52 @@ In all of these situations, but especially in 3., the **✨ Promptbook can make
131
131
 
132
132
 
133
133
 
134
- ## 💜 The Promptbook Project
135
134
 
136
135
 
137
136
 
137
+ ## 💜 The Promptbook Project
138
+
139
+ Promptbook project is ecosystem of multiple projects and tools, following is a list of most important pieces of the project:
140
+
138
141
  <table>
139
- <tbody>
142
+ <thead>
140
143
  <tr>
141
- <td>Promptbook whitepaper</td>
142
- <td>Basic motivations and problems which we are trying to solve</td>
143
- <td rowspan=3>https://github.com/webgptorg/book</td>
144
+ <th>Project</th>
145
+ <th>Description</th>
146
+ <th>Link</th>
144
147
  </tr>
148
+ </thead>
149
+ <tbody>
145
150
  <tr>
146
- <td>Promptbook <i>(system)</i></td>
147
- <td>Promptbook ...</td>
151
+ <td>Core</td>
152
+ <td>Promptbook core is a description and documentation of basic innerworkings how should be Promptbook implemented and defines which fetures must be descriable by book language</td>
153
+ <td rowspan=2>https://ptbk.io<br/>https://github.com/webgptorg/book</td>
148
154
  </tr>
149
155
  <tr>
150
156
  <td>Book language</td>
151
157
  <td>
152
- 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
158
+ Book is a markdown-like language to define core entities like projects, pipelines, knowledge,.... It is designed to be understandable by non-programmers and non-technical people
153
159
  </td>
154
160
  </tr>
155
161
  <tr>
156
162
  <td>Promptbook typescript project</td>
157
163
  <td>Implementation of Promptbook in TypeScript published into multiple packages to NPM</td>
158
- <td>https://github.com/webgptorg/promptbook</td>
164
+ <td>https://github.com/webgptorg/promptbook + Multiple packages on NPM</td>
159
165
  </tr>
160
166
  <tr>
161
167
  <td>Promptbook studio</td>
162
- <td>Promptbook studio</td>
163
- <td rowspan=2>https://github.com/hejny/promptbook-studio</td>
168
+ <td>No-code studio to write book without need to write even the markdown</td>
169
+ <td rowspan=2>https://promptbook.studio<br/>https://github.com/hejny/promptbook-studio</td>
164
170
  </tr>
165
171
  <tr>
166
172
  <td>Promptbook miniapps</td>
167
- <td>Promptbook miniapps</td>
173
+ <td>Builder of LLM miniapps from book notation</td>
168
174
  </tr>
169
175
  </tbody>
170
176
  </table>
171
177
 
178
+
179
+
172
180
  ## 💙 Book language _(for prompt-engineer)_
173
181
 
174
182
  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.
@@ -239,15 +247,66 @@ Or you can install them separately:
239
247
 
240
248
 
241
249
 
250
+
251
+
252
+
242
253
  ## 📚 Dictionary
243
254
 
244
- The following glossary is used to clarify certain concepts:
245
255
 
246
- ### Basic terms
247
256
 
248
257
 
249
258
 
250
- ### Core concepts
259
+
260
+ ### 📚 Dictionary
261
+
262
+ The following glossary is used to clarify certain concepts:
263
+
264
+ #### General LLM / AI terms
265
+
266
+ - **Prompt drift** is a phenomenon where the AI model starts to generate outputs that are not aligned with the original prompt. This can happen due to the model's training data, the prompt's wording, or the model's architecture.
267
+ - **Pipeline, workflow or chain** is a sequence of tasks that are executed in a specific order. In the context of AI, a pipeline can refer to a sequence of AI models that are used to process data.
268
+ - **Fine-tuning** is a process where a pre-trained AI model is further trained on a specific dataset to improve its performance on a specific task.
269
+ - **Zero-shot learning** is a machine learning paradigm where a model is trained to perform a task without any labeled examples. Instead, the model is provided with a description of the task and is expected to generate the correct output.
270
+ - **Few-shot learning** is a machine learning paradigm where a model is trained to perform a task with only a few labeled examples. This is in contrast to traditional machine learning, where models are trained on large datasets.
271
+ - **Meta-learning** is a machine learning paradigm where a model is trained on a variety of tasks and is able to learn new tasks with minimal additional training. This is achieved by learning a set of meta-parameters that can be quickly adapted to new tasks.
272
+ - **Retrieval-augmented generation** is a machine learning paradigm where a model generates text by retrieving relevant information from a large database of text. This approach combines the benefits of generative models and retrieval models.
273
+ - **Longtail** refers to non-common or rare events, items, or entities that are not well-represented in the training data of machine learning models. Longtail items are often challenging for models to predict accurately.
274
+
275
+
276
+
277
+ _Note: Thos section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
278
+
279
+ #### Promptbook core
280
+
281
+ - **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).
282
+ - **Jobs**
283
+ - **Task**
284
+ - **Subtask**
285
+ - **Workforce**
286
+ - **Persona**
287
+ - **Team**
288
+ - **Role**
289
+ - **Knowledge**
290
+ - **Public**
291
+ - **Private**
292
+ - **Protected**
293
+ - **Instruments**
294
+ - **Actions**
295
+
296
+ #### Book language
297
+
298
+ - **Book file**
299
+ - **Section**
300
+ - **Heading**
301
+ - **Description**
302
+ - **Command**
303
+ - **Block**
304
+ - **Return statement**
305
+ - **Comment**
306
+ - **Import**
307
+ - **Scope**
308
+
309
+ #### 💯 Core concepts
251
310
 
252
311
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
253
312
  - [📯 Pipeline](https://github.com/webgptorg/promptbook/discussions/64)
@@ -260,7 +319,7 @@ The following glossary is used to clarify certain concepts:
260
319
  - [🔣 Words not tokens](https://github.com/webgptorg/promptbook/discussions/29)
261
320
  - [☯ Separation of concerns](https://github.com/webgptorg/promptbook/discussions/32)
262
321
 
263
- ### Advanced concepts
322
+ ##### Advanced concepts
264
323
 
265
324
  - [📚 Knowledge (Retrieval-augmented generation)](https://github.com/webgptorg/promptbook/discussions/41)
266
325
  - [🌏 Remote server](https://github.com/webgptorg/promptbook/discussions/89)
@@ -275,6 +334,15 @@ The following glossary is used to clarify certain concepts:
275
334
  - [👮 Agent adversary expectations](https://github.com/webgptorg/promptbook/discussions/39)
276
335
  - [view more](https://github.com/webgptorg/promptbook/discussions/categories/concepts)
277
336
 
337
+
338
+
339
+ ### Terms specific to Promptbook TypeScript implementation
340
+
341
+ - Anonymous mode
342
+ - Application mode
343
+
344
+
345
+
278
346
  ## 🔌 Usage in Typescript / Javascript
279
347
 
280
348
  - [Simple usage](./examples/usage/simple-script)