@promptbook/markdown-utils 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.
- package/README.md +84 -16
- package/esm/index.es.js +209 -276
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/anthropic-claude.index.d.ts +2 -2
- package/esm/typings/src/_packages/azure-openai.index.d.ts +2 -2
- package/esm/typings/src/_packages/browser.index.d.ts +2 -2
- package/esm/typings/src/_packages/cli.index.d.ts +2 -2
- package/esm/typings/src/_packages/core.index.d.ts +2 -2
- package/esm/typings/src/_packages/documents.index.d.ts +2 -2
- package/esm/typings/src/_packages/execute-javascript.index.d.ts +2 -2
- package/esm/typings/src/_packages/fake-llm.index.d.ts +2 -2
- package/esm/typings/src/_packages/langtail.index.d.ts +2 -2
- package/esm/typings/src/_packages/legacy-documents.index.d.ts +2 -2
- package/esm/typings/src/_packages/markdown-utils.index.d.ts +2 -2
- package/esm/typings/src/_packages/node.index.d.ts +2 -2
- package/esm/typings/src/_packages/openai.index.d.ts +2 -2
- package/esm/typings/src/_packages/pdf.index.d.ts +2 -2
- package/esm/typings/src/_packages/remote-client.index.d.ts +2 -2
- package/esm/typings/src/_packages/remote-server.index.d.ts +2 -2
- package/esm/typings/src/_packages/utils.index.d.ts +2 -2
- package/esm/typings/src/_packages/website-crawler.index.d.ts +2 -2
- package/esm/typings/src/cli/cli-commands/make.d.ts +0 -1
- package/esm/typings/src/cli/cli-commands/run.d.ts +14 -0
- package/esm/typings/src/cli/promptbookCli.d.ts +1 -0
- package/esm/typings/src/cli/test/ptbk.d.ts +4 -1
- package/esm/typings/src/commands/{PROMPTBOOK_VERSION/PromptbookVersionCommand.d.ts → BOOK_VERSION/BookVersionCommand.d.ts} +4 -4
- package/esm/typings/src/commands/BOOK_VERSION/bookVersionCommandParser.d.ts +9 -0
- package/esm/typings/src/commands/_common/types/CommandParser.d.ts +1 -1
- package/esm/typings/src/commands/index.d.ts +1 -1
- package/esm/typings/src/version.d.ts +13 -2
- package/package.json +1 -1
- package/umd/index.umd.js +210 -276
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/commands/PROMPTBOOK_VERSION/promptbookVersionCommandParser.d.ts +0 -9
- /package/esm/typings/src/commands/{PROMPTBOOK_VERSION/promptbookVersionCommand.test.d.ts → BOOK_VERSION/bookVersionCommand.test.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -74,44 +74,52 @@ In all of these situations, but especially in 3., the **✨ Promptbook can make
|
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
## 💜 The Promptbook Project
|
|
78
77
|
|
|
79
78
|
|
|
80
79
|
|
|
80
|
+
## 💜 The Promptbook Project
|
|
81
|
+
|
|
82
|
+
Promptbook project is ecosystem of multiple projects and tools, following is a list of most important pieces of the project:
|
|
83
|
+
|
|
81
84
|
<table>
|
|
82
|
-
<
|
|
85
|
+
<thead>
|
|
83
86
|
<tr>
|
|
84
|
-
<
|
|
85
|
-
<
|
|
86
|
-
<
|
|
87
|
+
<th>Project</th>
|
|
88
|
+
<th>Description</th>
|
|
89
|
+
<th>Link</th>
|
|
87
90
|
</tr>
|
|
91
|
+
</thead>
|
|
92
|
+
<tbody>
|
|
88
93
|
<tr>
|
|
89
|
-
<td>
|
|
90
|
-
<td>Promptbook
|
|
94
|
+
<td>Core</td>
|
|
95
|
+
<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>
|
|
96
|
+
<td rowspan=2>https://ptbk.io<br/>https://github.com/webgptorg/book</td>
|
|
91
97
|
</tr>
|
|
92
98
|
<tr>
|
|
93
99
|
<td>Book language</td>
|
|
94
100
|
<td>
|
|
95
|
-
Book is a markdown-like language to define projects, pipelines, knowledge
|
|
101
|
+
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
|
|
96
102
|
</td>
|
|
97
103
|
</tr>
|
|
98
104
|
<tr>
|
|
99
105
|
<td>Promptbook typescript project</td>
|
|
100
106
|
<td>Implementation of Promptbook in TypeScript published into multiple packages to NPM</td>
|
|
101
|
-
<td>https://github.com/webgptorg/promptbook</td>
|
|
107
|
+
<td>https://github.com/webgptorg/promptbook + Multiple packages on NPM</td>
|
|
102
108
|
</tr>
|
|
103
109
|
<tr>
|
|
104
110
|
<td>Promptbook studio</td>
|
|
105
|
-
<td>
|
|
106
|
-
<td rowspan=2>https://github.com/hejny/promptbook-studio</td>
|
|
111
|
+
<td>No-code studio to write book without need to write even the markdown</td>
|
|
112
|
+
<td rowspan=2>https://promptbook.studio<br/>https://github.com/hejny/promptbook-studio</td>
|
|
107
113
|
</tr>
|
|
108
114
|
<tr>
|
|
109
115
|
<td>Promptbook miniapps</td>
|
|
110
|
-
<td>
|
|
116
|
+
<td>Builder of LLM miniapps from book notation</td>
|
|
111
117
|
</tr>
|
|
112
118
|
</tbody>
|
|
113
119
|
</table>
|
|
114
120
|
|
|
121
|
+
|
|
122
|
+
|
|
115
123
|
## 💙 Book language _(for prompt-engineer)_
|
|
116
124
|
|
|
117
125
|
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.
|
|
@@ -182,15 +190,66 @@ Or you can install them separately:
|
|
|
182
190
|
|
|
183
191
|
|
|
184
192
|
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
185
196
|
## 📚 Dictionary
|
|
186
197
|
|
|
187
|
-
The following glossary is used to clarify certain concepts:
|
|
188
198
|
|
|
189
|
-
### Basic terms
|
|
190
199
|
|
|
191
200
|
|
|
192
201
|
|
|
193
|
-
|
|
202
|
+
|
|
203
|
+
### 📚 Dictionary
|
|
204
|
+
|
|
205
|
+
The following glossary is used to clarify certain concepts:
|
|
206
|
+
|
|
207
|
+
#### General LLM / AI terms
|
|
208
|
+
|
|
209
|
+
- **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.
|
|
210
|
+
- **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.
|
|
211
|
+
- **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.
|
|
212
|
+
- **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.
|
|
213
|
+
- **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.
|
|
214
|
+
- **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.
|
|
215
|
+
- **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.
|
|
216
|
+
- **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.
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
_Note: Thos section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
|
221
|
+
|
|
222
|
+
#### Promptbook core
|
|
223
|
+
|
|
224
|
+
- **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).
|
|
225
|
+
- **Jobs**
|
|
226
|
+
- **Task**
|
|
227
|
+
- **Subtask**
|
|
228
|
+
- **Workforce**
|
|
229
|
+
- **Persona**
|
|
230
|
+
- **Team**
|
|
231
|
+
- **Role**
|
|
232
|
+
- **Knowledge**
|
|
233
|
+
- **Public**
|
|
234
|
+
- **Private**
|
|
235
|
+
- **Protected**
|
|
236
|
+
- **Instruments**
|
|
237
|
+
- **Actions**
|
|
238
|
+
|
|
239
|
+
#### Book language
|
|
240
|
+
|
|
241
|
+
- **Book file**
|
|
242
|
+
- **Section**
|
|
243
|
+
- **Heading**
|
|
244
|
+
- **Description**
|
|
245
|
+
- **Command**
|
|
246
|
+
- **Block**
|
|
247
|
+
- **Return statement**
|
|
248
|
+
- **Comment**
|
|
249
|
+
- **Import**
|
|
250
|
+
- **Scope**
|
|
251
|
+
|
|
252
|
+
#### 💯 Core concepts
|
|
194
253
|
|
|
195
254
|
- [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
|
|
196
255
|
- [📯 Pipeline](https://github.com/webgptorg/promptbook/discussions/64)
|
|
@@ -203,7 +262,7 @@ The following glossary is used to clarify certain concepts:
|
|
|
203
262
|
- [🔣 Words not tokens](https://github.com/webgptorg/promptbook/discussions/29)
|
|
204
263
|
- [☯ Separation of concerns](https://github.com/webgptorg/promptbook/discussions/32)
|
|
205
264
|
|
|
206
|
-
|
|
265
|
+
##### Advanced concepts
|
|
207
266
|
|
|
208
267
|
- [📚 Knowledge (Retrieval-augmented generation)](https://github.com/webgptorg/promptbook/discussions/41)
|
|
209
268
|
- [🌏 Remote server](https://github.com/webgptorg/promptbook/discussions/89)
|
|
@@ -218,6 +277,15 @@ The following glossary is used to clarify certain concepts:
|
|
|
218
277
|
- [👮 Agent adversary expectations](https://github.com/webgptorg/promptbook/discussions/39)
|
|
219
278
|
- [view more](https://github.com/webgptorg/promptbook/discussions/categories/concepts)
|
|
220
279
|
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
### Terms specific to Promptbook TypeScript implementation
|
|
283
|
+
|
|
284
|
+
- Anonymous mode
|
|
285
|
+
- Application mode
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
221
289
|
## 🔌 Usage in Typescript / Javascript
|
|
222
290
|
|
|
223
291
|
- [Simple usage](./examples/usage/simple-script)
|