@promptbook/legacy-documents 0.92.0 → 0.93.0
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 +139 -83
- package/esm/index.es.js +1 -1
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +3 -3
- package/umd/index.umd.js +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<!-- ⚠️ WARNING: This code has been generated so that any manual changes will be overwritten -->
|
|
2
2
|
|
|
3
|
-
# ✨ Promptbook
|
|
3
|
+
# ✨ Promptbook: AI apps in plain Language
|
|
4
|
+
|
|
5
|
+
Write AI applications using plain human language across multiple models and platforms.
|
|
4
6
|
|
|
5
7
|
|
|
6
8
|
|
|
@@ -8,18 +10,18 @@
|
|
|
8
10
|
[ Promptbook](https://badge.fury.io/js/promptbook.svg)](https://www.npmjs.com/package/promptbook)
|
|
9
11
|
[ Promptbook](https://packagequality.com/shield/promptbook.svg)](https://packagequality.com/#?package=promptbook)
|
|
10
12
|
[](https://snyk.io/test/github/webgptorg/promptbook)
|
|
13
|
+
[](https://github.com/webgptorg/promptbook/actions)
|
|
14
|
+
[](https://coveralls.io/github/webgptorg/promptbook?branch=main)
|
|
11
15
|
[](https://github.com/webgptorg/promptbook/issues)
|
|
12
16
|
|
|
13
17
|
|
|
14
18
|
|
|
15
|
-
|
|
16
|
-
|
|
17
19
|
## 🌟 New Features
|
|
18
20
|
|
|
19
|
-
-
|
|
20
|
-
- 🐳
|
|
21
|
-
-
|
|
22
|
-
-
|
|
21
|
+
- 💡 VS Code support for `.book` files with syntax highlighting and IntelliSense
|
|
22
|
+
- 🐳 Official Docker image (`hejny/promptbook`) for seamless containerized usage
|
|
23
|
+
- 🔥 Native support for OpenAI `o3-mini`, GPT-4 and other leading LLMs
|
|
24
|
+
- 🔍 DeepSeek integration for advanced knowledge search
|
|
23
25
|
|
|
24
26
|
|
|
25
27
|
|
|
@@ -125,65 +127,92 @@ Hello world examples:
|
|
|
125
127
|
- [Hello world in Node.js](https://github.com/webgptorg/hello-world-node-js)
|
|
126
128
|
- [Hello world in Next.js](https://github.com/webgptorg/hello-world-next-js)
|
|
127
129
|
|
|
130
|
+
### 🌐 Community & Social Media
|
|
128
131
|
|
|
132
|
+
Join our growing community of developers and users:
|
|
129
133
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
134
|
+
<table>
|
|
135
|
+
<thead>
|
|
136
|
+
<tr>
|
|
137
|
+
<th>Platform</th>
|
|
138
|
+
<th>Description</th>
|
|
139
|
+
</tr>
|
|
140
|
+
</thead>
|
|
141
|
+
<tbody>
|
|
142
|
+
<tr>
|
|
143
|
+
<td><a href="https://discord.gg/x3QWNaa89N">💬 Discord</a></td>
|
|
144
|
+
<td>Join our active developer community for discussions and support</td>
|
|
145
|
+
</tr>
|
|
146
|
+
<tr>
|
|
147
|
+
<td><a href="https://github.com/webgptorg/promptbook/discussions">🗣️ GitHub Discussions</a></td>
|
|
148
|
+
<td>Technical discussions, feature requests, and community Q&A</td>
|
|
149
|
+
</tr>
|
|
150
|
+
<tr>
|
|
151
|
+
<td><a href="https://linkedin.com/company/promptbook">👔 LinkedIn</a></td>
|
|
152
|
+
<td>Professional updates and industry insights</td>
|
|
153
|
+
</tr>
|
|
154
|
+
<tr>
|
|
155
|
+
<td><a href="https://www.facebook.com/61560776453536">📱 Facebook</a></td>
|
|
156
|
+
<td>General announcements and community engagement</td>
|
|
157
|
+
</tr>
|
|
158
|
+
<tr>
|
|
159
|
+
<td><a href="https://ptbk.io">🔗 ptbk.io</a></td>
|
|
160
|
+
<td>Official landing page with project information</td>
|
|
161
|
+
</tr>
|
|
162
|
+
</tbody>
|
|
163
|
+
</table>
|
|
149
164
|
|
|
165
|
+
### 🖼️ Product & Brand Channels
|
|
150
166
|
|
|
151
|
-
|
|
152
|
-
- [Facebook `Promptujeme`](https://www.facebook.com/promptujeme/)
|
|
167
|
+
#### Promptbook.studio
|
|
153
168
|
|
|
154
|
-
|
|
169
|
+
<table>
|
|
170
|
+
<tbody>
|
|
171
|
+
<tr>
|
|
172
|
+
<td><a href="https://www.instagram.com/promptbook.studio/">📸 Instagram @promptbook.studio</a></td>
|
|
173
|
+
<td>Visual updates, UI showcases, and design inspiration</td>
|
|
174
|
+
</tr>
|
|
175
|
+
|
|
176
|
+
</tbody>
|
|
177
|
+
</table>
|
|
155
178
|
|
|
156
|
-
_/Sub-brand for images and graphics generated via Promptbook prompting/_
|
|
157
179
|
|
|
158
|
-
- [Instagram `@promptbook.city`](https://www.instagram.com/promptbook.city/)
|
|
159
|
-
- [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
|
|
160
180
|
|
|
161
181
|
|
|
162
182
|
|
|
163
183
|
|
|
184
|
+
## 📘 Book Language Blueprint
|
|
164
185
|
|
|
186
|
+
_A concise, Markdown-based DSL for crafting AI workflows and automations._
|
|
165
187
|
|
|
166
|
-
|
|
188
|
+
---
|
|
167
189
|
|
|
190
|
+
### 📑 Table of Contents
|
|
168
191
|
|
|
192
|
+
- [Introduction](#introduction)
|
|
193
|
+
- [Example](#example)
|
|
194
|
+
- [1. What: Workflows, Tasks & Parameters](#1-what-workflows-tasks--parameters)
|
|
195
|
+
- [2. Who: Personas](#2-who-personas)
|
|
196
|
+
- [3. How: Knowledge, Instruments & Actions](#3-how-knowledge-instruments-and-actions)
|
|
197
|
+
- [General Principles](#general-principles)
|
|
169
198
|
|
|
170
|
-
|
|
199
|
+
### Introduction
|
|
171
200
|
|
|
172
|
-
Book is a language that
|
|
201
|
+
Book is a Markdown-based language that simplifies the creation of AI applications, workflows, and automations. With human-readable commands, you can define inputs, outputs, personas, knowledge sources, and actions—without needing model-specific details.
|
|
173
202
|
|
|
174
203
|
### Example
|
|
175
204
|
|
|
176
|
-
```
|
|
177
|
-
# 🌟 My
|
|
205
|
+
```book
|
|
206
|
+
# 🌟 My First Book
|
|
178
207
|
|
|
179
208
|
- BOOK VERSION 1.0.0
|
|
180
209
|
- URL https://promptbook.studio/hello.book
|
|
181
210
|
- INPUT PARAMETER {topic}
|
|
182
211
|
- OUTPUT PARAMETER {article}
|
|
183
212
|
|
|
184
|
-
# Write an
|
|
213
|
+
# Write an Article
|
|
185
214
|
|
|
186
|
-
- PERSONA Jane, marketing specialist with prior experience in
|
|
215
|
+
- PERSONA Jane, marketing specialist with prior experience in tech and AI writing
|
|
187
216
|
- KNOWLEDGE https://wikipedia.org/
|
|
188
217
|
- KNOWLEDGE ./journalist-ethics.pdf
|
|
189
218
|
- EXPECT MIN 1 Sentence
|
|
@@ -191,20 +220,20 @@ Book is a language that can be used to write AI applications, agents, workflows,
|
|
|
191
220
|
|
|
192
221
|
> Write an article about {topic}
|
|
193
222
|
|
|
194
|
-
|
|
223
|
+
→ {article}
|
|
195
224
|
```
|
|
196
225
|
|
|
197
226
|
Each part of the book defines one of 3 circles:
|
|
198
227
|
|
|
199
|
-
### **What:** Workflows, Tasks and Parameters
|
|
228
|
+
### **1. What:** Workflows, Tasks and Parameters
|
|
200
229
|
|
|
201
|
-
What work needs to be done. Each book defines a [workflow
|
|
230
|
+
What work needs to be done. Each book defines a [workflow _(scenario or pipeline)_](https://github.com/webgptorg/promptbook/discussions/88), 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.
|
|
202
231
|
|
|
203
232
|
**Related commands:**
|
|
204
233
|
|
|
205
234
|
- [PARAMETER](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PARAMETER.md)
|
|
206
235
|
|
|
207
|
-
### **Who:** Personas
|
|
236
|
+
### **2. Who:** Personas
|
|
208
237
|
|
|
209
238
|
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.
|
|
210
239
|
|
|
@@ -218,7 +247,7 @@ Personas can have access to different knowledge, tools and actions. They can als
|
|
|
218
247
|
|
|
219
248
|
|
|
220
249
|
|
|
221
|
-
### **How:** Knowledge, Instruments and Actions
|
|
250
|
+
### **3. How:** Knowledge, Instruments and Actions
|
|
222
251
|
|
|
223
252
|
The resources used by the personas are used to do the work.
|
|
224
253
|
|
|
@@ -228,7 +257,7 @@ The resources used by the personas are used to do the work.
|
|
|
228
257
|
- [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.
|
|
229
258
|
- [ACTION](https://github.com/webgptorg/promptbook/blob/main/documents/commands/ACTION.md) for actions like sending emails, creating files, ending a workflow, etc.
|
|
230
259
|
|
|
231
|
-
### General
|
|
260
|
+
### General Principles
|
|
232
261
|
|
|
233
262
|
Book language is based on markdown. It is subset of markdown. It is designed to be easy to read and write. It is designed to be understandable by both humans and machines and without specific knowledge of the language.
|
|
234
263
|
|
|
@@ -242,6 +271,10 @@ But unlike programming languages, it is designed to be understandable by non-pro
|
|
|
242
271
|
|
|
243
272
|
|
|
244
273
|
|
|
274
|
+
## 📚 Documentation
|
|
275
|
+
|
|
276
|
+
See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
|
|
277
|
+
|
|
245
278
|
## 🔒 Security
|
|
246
279
|
|
|
247
280
|
For information on reporting security vulnerabilities, see our [Security Policy](./SECURITY.md).
|
|
@@ -322,25 +355,56 @@ _Note: This section is not complete dictionary, more list of general AI / LLM te
|
|
|
322
355
|
- [🤼 Personas](https://github.com/webgptorg/promptbook/discussions/22)
|
|
323
356
|
- [⭕ Parameters](https://github.com/webgptorg/promptbook/discussions/83)
|
|
324
357
|
- [🚀 Pipeline execution](https://github.com/webgptorg/promptbook/discussions/84)
|
|
325
|
-
- [🧪 Expectations](https://github.com/webgptorg/promptbook/discussions/30)
|
|
326
|
-
- [✂️ Postprocessing](https://github.com/webgptorg/promptbook/discussions/31)
|
|
327
|
-
- [🔣 Words not tokens](https://github.com/webgptorg/promptbook/discussions/29)
|
|
328
|
-
- [☯ Separation of concerns](https://github.com/webgptorg/promptbook/discussions/32)
|
|
358
|
+
- [🧪 Expectations](https://github.com/webgptorg/promptbook/discussions/30) - Define what outputs should look like and how they're validated
|
|
359
|
+
- [✂️ Postprocessing](https://github.com/webgptorg/promptbook/discussions/31) - How outputs are refined after generation
|
|
360
|
+
- [🔣 Words not tokens](https://github.com/webgptorg/promptbook/discussions/29) - The human-friendly way to think about text generation
|
|
361
|
+
- [☯ Separation of concerns](https://github.com/webgptorg/promptbook/discussions/32) - How Book language organizes different aspects of AI workflows
|
|
329
362
|
|
|
330
|
-
|
|
363
|
+
### Advanced concepts
|
|
364
|
+
|
|
365
|
+
<table>
|
|
366
|
+
<tr>
|
|
367
|
+
<th>Data & Knowledge Management</th>
|
|
368
|
+
<th>Pipeline Control</th>
|
|
369
|
+
</tr>
|
|
370
|
+
<tr>
|
|
371
|
+
<td>
|
|
372
|
+
<ul>
|
|
373
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/41">📚 Knowledge (RAG)</a> - Retrieve and use external information</li>
|
|
374
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/54">📽 Media handling</a> - Working with images, audio, video, spreadsheets</li>
|
|
375
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/40">🔴 Anomaly detection</a> - Identifying unusual patterns or outputs</li>
|
|
376
|
+
</ul>
|
|
377
|
+
</td>
|
|
378
|
+
<td>
|
|
379
|
+
<ul>
|
|
380
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/89">🌏 Remote server</a> - Executing workflows on remote infrastructure</li>
|
|
381
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/66">🃏 Jokers (conditions)</a> - Adding conditional logic to workflows</li>
|
|
382
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/35">🔳 Metaprompting</a> - Creating prompts that generate other prompts</li>
|
|
383
|
+
</ul>
|
|
384
|
+
</td>
|
|
385
|
+
</tr>
|
|
386
|
+
<tr>
|
|
387
|
+
<th>Language & Output Control</th>
|
|
388
|
+
<th>Advanced Generation</th>
|
|
389
|
+
</tr>
|
|
390
|
+
<tr>
|
|
391
|
+
<td>
|
|
392
|
+
<ul>
|
|
393
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/53">🌏 Linguistically typed languages</a> - Type systems for natural language</li>
|
|
394
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/42">🌍 Auto-Translations</a> - Automatic multilingual support</li>
|
|
395
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/39">👮 Agent adversary expectations</a> - Safety and control mechanisms</li>
|
|
396
|
+
</ul>
|
|
397
|
+
</td>
|
|
398
|
+
<td>
|
|
399
|
+
<ul>
|
|
400
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/37">🔙 Expectation-aware generation</a> - Outputs that meet defined criteria</li>
|
|
401
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/33">⏳ Just-in-time fine-tuning</a> - Dynamic model adaptation</li>
|
|
402
|
+
</ul>
|
|
403
|
+
</td>
|
|
404
|
+
</tr>
|
|
405
|
+
</table>
|
|
331
406
|
|
|
332
|
-
|
|
333
|
-
- [🌏 Remote server](https://github.com/webgptorg/promptbook/discussions/89)
|
|
334
|
-
- [🃏 Jokers (conditions)](https://github.com/webgptorg/promptbook/discussions/66)
|
|
335
|
-
- [🔳 Metaprompting](https://github.com/webgptorg/promptbook/discussions/35)
|
|
336
|
-
- [🌏 Linguistically typed languages](https://github.com/webgptorg/promptbook/discussions/53)
|
|
337
|
-
- [🌍 Auto-Translations](https://github.com/webgptorg/promptbook/discussions/42)
|
|
338
|
-
- [📽 Images, audio, video, spreadsheets](https://github.com/webgptorg/promptbook/discussions/54)
|
|
339
|
-
- [🔙 Expectation-aware generation](https://github.com/webgptorg/promptbook/discussions/37)
|
|
340
|
-
- [⏳ Just-in-time fine-tuning](https://github.com/webgptorg/promptbook/discussions/33)
|
|
341
|
-
- [🔴 Anomaly detection](https://github.com/webgptorg/promptbook/discussions/40)
|
|
342
|
-
- [👮 Agent adversary expectations](https://github.com/webgptorg/promptbook/discussions/39)
|
|
343
|
-
- [view more](https://github.com/webgptorg/promptbook/discussions/categories/concepts)
|
|
407
|
+
<p align="center"><a href="https://github.com/webgptorg/promptbook/discussions/categories/concepts">🔍 View more concepts</a></p>
|
|
344
408
|
|
|
345
409
|
|
|
346
410
|
|
|
@@ -395,36 +459,28 @@ If you have a question [start a discussion](https://github.com/webgptorg/promptb
|
|
|
395
459
|
- [❔ Is Promptbook using RAG _(Retrieval-Augmented Generation)_?](https://github.com/webgptorg/promptbook/discussions/123)
|
|
396
460
|
- [❔ Is Promptbook using function calling?](https://github.com/webgptorg/promptbook/discussions/124)
|
|
397
461
|
|
|
398
|
-
##
|
|
462
|
+
## 📅 Changelog
|
|
399
463
|
|
|
400
464
|
See [CHANGELOG.md](./CHANGELOG.md)
|
|
401
465
|
|
|
402
466
|
## 📜 License
|
|
403
467
|
|
|
404
|
-
|
|
468
|
+
This project is licensed under [BUSL 1.1](./LICENSE.md).
|
|
405
469
|
|
|
406
|
-
##
|
|
470
|
+
## 🤝 Contributing
|
|
407
471
|
|
|
408
|
-
See [
|
|
472
|
+
We welcome contributions! See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.
|
|
409
473
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
<div style="display: flex; align-items: center; gap: 20px;">
|
|
413
|
-
|
|
414
|
-
<a href="https://promptbook.studio/">
|
|
415
|
-
<img src="./design/promptbook-studio-logo.png" alt="Partner 3" height="70">
|
|
416
|
-
</a>
|
|
417
|
-
|
|
418
|
-
<a href="https://technologickainkubace.org/en/about-technology-incubation/about-the-project/">
|
|
419
|
-
<img src="./other/partners/CI-Technology-Incubation.png" alt="Technology Incubation" height="70">
|
|
420
|
-
</a>
|
|
421
|
-
|
|
422
|
-
</div>
|
|
474
|
+
You can also ⭐ star the project, [follow us on GitHub](https://github.com/hejny) or [various other social networks](https://www.pavolhejny.com/contact/).We are open to [pull requests, feedback, and suggestions](./CONTRIBUTING.md).
|
|
423
475
|
|
|
424
|
-
##
|
|
476
|
+
## 🆘 Support & Community
|
|
425
477
|
|
|
426
|
-
|
|
478
|
+
Need help with Book language? We're here for you!
|
|
427
479
|
|
|
428
|
-
|
|
480
|
+
- 💬 [Join our Discord community](https://discord.gg/x3QWNaa89N) for real-time support
|
|
481
|
+
- 📝 [Browse our GitHub discussions](https://github.com/webgptorg/promptbook/discussions) for FAQs and community knowledge
|
|
482
|
+
- 🐛 [Report issues](https://github.com/webgptorg/book/issues) for bugs or feature requests
|
|
483
|
+
- 📚 Visit [ptbk.io](https://ptbk.io) for more resources and documentation
|
|
484
|
+
- 📧 Contact us directly through the channels listed in our [signpost](./SIGNPOST.md)
|
|
429
485
|
|
|
430
|
-
|
|
486
|
+
We welcome contributions and feedback to make Book language better for everyone!
|
package/esm/index.es.js
CHANGED
|
@@ -28,7 +28,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
28
28
|
* @generated
|
|
29
29
|
* @see https://github.com/webgptorg/promptbook
|
|
30
30
|
*/
|
|
31
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.
|
|
31
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.93.0';
|
|
32
32
|
/**
|
|
33
33
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
34
34
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.92.0
|
|
18
|
+
* It follows semantic versioning (e.g., `0.92.0`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/legacy-documents",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.93.0",
|
|
4
|
+
"description": "Promptbook: Run AI apps in plain human language across multiple models and platforms",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"repository": {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"module": "./esm/index.es.js",
|
|
64
64
|
"typings": "./esm/typings/src/_packages/legacy-documents.index.d.ts",
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@promptbook/core": "0.
|
|
66
|
+
"@promptbook/core": "0.93.0"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"colors": "1.4.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* @generated
|
|
27
27
|
* @see https://github.com/webgptorg/promptbook
|
|
28
28
|
*/
|
|
29
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.
|
|
29
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.93.0';
|
|
30
30
|
/**
|
|
31
31
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
32
32
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|