@promptbook/node 0.74.0-0 → 0.74.0-2

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 +230 -353
  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 +13 -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 +2 -2
  32. package/umd/index.umd.js +231 -353
  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
@@ -78,44 +78,52 @@ In all of these situations, but especially in 3., the **✨ Promptbook can make
78
78
 
79
79
 
80
80
 
81
- ## 💜 The Promptbook Project
82
81
 
83
82
 
84
83
 
84
+ ## 💜 The Promptbook Project
85
+
86
+ Promptbook project is ecosystem of multiple projects and tools, following is a list of most important pieces of the project:
87
+
85
88
  <table>
86
- <tbody>
89
+ <thead>
87
90
  <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
+ <th>Project</th>
92
+ <th>Description</th>
93
+ <th>Link</th>
91
94
  </tr>
95
+ </thead>
96
+ <tbody>
92
97
  <tr>
93
- <td>Promptbook <i>(system)</i></td>
94
- <td>Promptbook ...</td>
98
+ <td>Core</td>
99
+ <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>
100
+ <td rowspan=2>https://ptbk.io<br/>https://github.com/webgptorg/book</td>
95
101
  </tr>
96
102
  <tr>
97
103
  <td>Book language</td>
98
104
  <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
105
+ 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
100
106
  </td>
101
107
  </tr>
102
108
  <tr>
103
109
  <td>Promptbook typescript project</td>
104
110
  <td>Implementation of Promptbook in TypeScript published into multiple packages to NPM</td>
105
- <td>https://github.com/webgptorg/promptbook</td>
111
+ <td>https://github.com/webgptorg/promptbook + Multiple packages on NPM</td>
106
112
  </tr>
107
113
  <tr>
108
114
  <td>Promptbook studio</td>
109
- <td>Promptbook studio</td>
110
- <td rowspan=2>https://github.com/hejny/promptbook-studio</td>
115
+ <td>No-code studio to write book without need to write even the markdown</td>
116
+ <td rowspan=2>https://promptbook.studio<br/>https://github.com/hejny/promptbook-studio</td>
111
117
  </tr>
112
118
  <tr>
113
119
  <td>Promptbook miniapps</td>
114
- <td>Promptbook miniapps</td>
120
+ <td>Builder of LLM miniapps from book notation</td>
115
121
  </tr>
116
122
  </tbody>
117
123
  </table>
118
124
 
125
+
126
+
119
127
  ## 💙 Book language _(for prompt-engineer)_
120
128
 
121
129
  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.
@@ -186,15 +194,66 @@ Or you can install them separately:
186
194
 
187
195
 
188
196
 
197
+
198
+
199
+
189
200
  ## 📚 Dictionary
190
201
 
191
- The following glossary is used to clarify certain concepts:
192
202
 
193
- ### Basic terms
194
203
 
195
204
 
196
205
 
197
- ### Core concepts
206
+
207
+ ### 📚 Dictionary
208
+
209
+ The following glossary is used to clarify certain concepts:
210
+
211
+ #### General LLM / AI terms
212
+
213
+ - **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.
214
+ - **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.
215
+ - **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.
216
+ - **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.
217
+ - **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.
218
+ - **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.
219
+ - **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.
220
+ - **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.
221
+
222
+
223
+
224
+ _Note: Thos section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
225
+
226
+ #### Promptbook core
227
+
228
+ - **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).
229
+ - **Jobs**
230
+ - **Task**
231
+ - **Subtask**
232
+ - **Workforce**
233
+ - **Persona**
234
+ - **Team**
235
+ - **Role**
236
+ - **Knowledge**
237
+ - **Public**
238
+ - **Private**
239
+ - **Protected**
240
+ - **Instruments**
241
+ - **Actions**
242
+
243
+ #### Book language
244
+
245
+ - **Book file**
246
+ - **Section**
247
+ - **Heading**
248
+ - **Description**
249
+ - **Command**
250
+ - **Block**
251
+ - **Return statement**
252
+ - **Comment**
253
+ - **Import**
254
+ - **Scope**
255
+
256
+ #### 💯 Core concepts
198
257
 
199
258
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
200
259
  - [📯 Pipeline](https://github.com/webgptorg/promptbook/discussions/64)
@@ -207,7 +266,7 @@ The following glossary is used to clarify certain concepts:
207
266
  - [🔣 Words not tokens](https://github.com/webgptorg/promptbook/discussions/29)
208
267
  - [☯ Separation of concerns](https://github.com/webgptorg/promptbook/discussions/32)
209
268
 
210
- ### Advanced concepts
269
+ ##### Advanced concepts
211
270
 
212
271
  - [📚 Knowledge (Retrieval-augmented generation)](https://github.com/webgptorg/promptbook/discussions/41)
213
272
  - [🌏 Remote server](https://github.com/webgptorg/promptbook/discussions/89)
@@ -222,6 +281,15 @@ The following glossary is used to clarify certain concepts:
222
281
  - [👮 Agent adversary expectations](https://github.com/webgptorg/promptbook/discussions/39)
223
282
  - [view more](https://github.com/webgptorg/promptbook/discussions/categories/concepts)
224
283
 
284
+
285
+
286
+ ### Terms specific to Promptbook TypeScript implementation
287
+
288
+ - Anonymous mode
289
+ - Application mode
290
+
291
+
292
+
225
293
  ## 🔌 Usage in Typescript / Javascript
226
294
 
227
295
  - [Simple usage](./examples/usage/simple-script)