ptbk 0.92.0 → 0.94.0-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/package.json +4 -4
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
|
|
@@ -103,65 +105,92 @@ Hello world examples:
|
|
103
105
|
- [Hello world in Node.js](https://github.com/webgptorg/hello-world-node-js)
|
104
106
|
- [Hello world in Next.js](https://github.com/webgptorg/hello-world-next-js)
|
105
107
|
|
108
|
+
### 🌐 Community & Social Media
|
106
109
|
|
110
|
+
Join our growing community of developers and users:
|
107
111
|
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
112
|
+
<table>
|
113
|
+
<thead>
|
114
|
+
<tr>
|
115
|
+
<th>Platform</th>
|
116
|
+
<th>Description</th>
|
117
|
+
</tr>
|
118
|
+
</thead>
|
119
|
+
<tbody>
|
120
|
+
<tr>
|
121
|
+
<td><a href="https://discord.gg/x3QWNaa89N">💬 Discord</a></td>
|
122
|
+
<td>Join our active developer community for discussions and support</td>
|
123
|
+
</tr>
|
124
|
+
<tr>
|
125
|
+
<td><a href="https://github.com/webgptorg/promptbook/discussions">🗣️ GitHub Discussions</a></td>
|
126
|
+
<td>Technical discussions, feature requests, and community Q&A</td>
|
127
|
+
</tr>
|
128
|
+
<tr>
|
129
|
+
<td><a href="https://linkedin.com/company/promptbook">👔 LinkedIn</a></td>
|
130
|
+
<td>Professional updates and industry insights</td>
|
131
|
+
</tr>
|
132
|
+
<tr>
|
133
|
+
<td><a href="https://www.facebook.com/61560776453536">📱 Facebook</a></td>
|
134
|
+
<td>General announcements and community engagement</td>
|
135
|
+
</tr>
|
136
|
+
<tr>
|
137
|
+
<td><a href="https://ptbk.io">🔗 ptbk.io</a></td>
|
138
|
+
<td>Official landing page with project information</td>
|
139
|
+
</tr>
|
140
|
+
</tbody>
|
141
|
+
</table>
|
127
142
|
|
143
|
+
### 🖼️ Product & Brand Channels
|
128
144
|
|
129
|
-
|
130
|
-
- [Facebook `Promptujeme`](https://www.facebook.com/promptujeme/)
|
145
|
+
#### Promptbook.studio
|
131
146
|
|
132
|
-
|
147
|
+
<table>
|
148
|
+
<tbody>
|
149
|
+
<tr>
|
150
|
+
<td><a href="https://www.instagram.com/promptbook.studio/">📸 Instagram @promptbook.studio</a></td>
|
151
|
+
<td>Visual updates, UI showcases, and design inspiration</td>
|
152
|
+
</tr>
|
153
|
+
|
154
|
+
</tbody>
|
155
|
+
</table>
|
133
156
|
|
134
|
-
_/Sub-brand for images and graphics generated via Promptbook prompting/_
|
135
157
|
|
136
|
-
- [Instagram `@promptbook.city`](https://www.instagram.com/promptbook.city/)
|
137
|
-
- [Facebook `Promptbook City`](https://www.facebook.com/61565718625569)
|
138
158
|
|
139
159
|
|
140
160
|
|
141
161
|
|
162
|
+
## 📘 Book Language Blueprint
|
142
163
|
|
164
|
+
_A concise, Markdown-based DSL for crafting AI workflows and automations._
|
143
165
|
|
144
|
-
|
166
|
+
---
|
145
167
|
|
168
|
+
### 📑 Table of Contents
|
146
169
|
|
170
|
+
- [Introduction](#introduction)
|
171
|
+
- [Example](#example)
|
172
|
+
- [1. What: Workflows, Tasks & Parameters](#1-what-workflows-tasks--parameters)
|
173
|
+
- [2. Who: Personas](#2-who-personas)
|
174
|
+
- [3. How: Knowledge, Instruments & Actions](#3-how-knowledge-instruments-and-actions)
|
175
|
+
- [General Principles](#general-principles)
|
147
176
|
|
148
|
-
|
177
|
+
### Introduction
|
149
178
|
|
150
|
-
Book is a language that
|
179
|
+
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.
|
151
180
|
|
152
181
|
### Example
|
153
182
|
|
154
|
-
```
|
155
|
-
# 🌟 My
|
183
|
+
```book
|
184
|
+
# 🌟 My First Book
|
156
185
|
|
157
186
|
- BOOK VERSION 1.0.0
|
158
187
|
- URL https://promptbook.studio/hello.book
|
159
188
|
- INPUT PARAMETER {topic}
|
160
189
|
- OUTPUT PARAMETER {article}
|
161
190
|
|
162
|
-
# Write an
|
191
|
+
# Write an Article
|
163
192
|
|
164
|
-
- PERSONA Jane, marketing specialist with prior experience in
|
193
|
+
- PERSONA Jane, marketing specialist with prior experience in tech and AI writing
|
165
194
|
- KNOWLEDGE https://wikipedia.org/
|
166
195
|
- KNOWLEDGE ./journalist-ethics.pdf
|
167
196
|
- EXPECT MIN 1 Sentence
|
@@ -169,20 +198,20 @@ Book is a language that can be used to write AI applications, agents, workflows,
|
|
169
198
|
|
170
199
|
> Write an article about {topic}
|
171
200
|
|
172
|
-
|
201
|
+
→ {article}
|
173
202
|
```
|
174
203
|
|
175
204
|
Each part of the book defines one of 3 circles:
|
176
205
|
|
177
|
-
### **What:** Workflows, Tasks and Parameters
|
206
|
+
### **1. What:** Workflows, Tasks and Parameters
|
178
207
|
|
179
|
-
What work needs to be done. Each book defines a [workflow
|
208
|
+
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.
|
180
209
|
|
181
210
|
**Related commands:**
|
182
211
|
|
183
212
|
- [PARAMETER](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PARAMETER.md)
|
184
213
|
|
185
|
-
### **Who:** Personas
|
214
|
+
### **2. Who:** Personas
|
186
215
|
|
187
216
|
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.
|
188
217
|
|
@@ -196,7 +225,7 @@ Personas can have access to different knowledge, tools and actions. They can als
|
|
196
225
|
|
197
226
|
|
198
227
|
|
199
|
-
### **How:** Knowledge, Instruments and Actions
|
228
|
+
### **3. How:** Knowledge, Instruments and Actions
|
200
229
|
|
201
230
|
The resources used by the personas are used to do the work.
|
202
231
|
|
@@ -206,7 +235,7 @@ The resources used by the personas are used to do the work.
|
|
206
235
|
- [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.
|
207
236
|
- [ACTION](https://github.com/webgptorg/promptbook/blob/main/documents/commands/ACTION.md) for actions like sending emails, creating files, ending a workflow, etc.
|
208
237
|
|
209
|
-
### General
|
238
|
+
### General Principles
|
210
239
|
|
211
240
|
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.
|
212
241
|
|
@@ -220,6 +249,10 @@ But unlike programming languages, it is designed to be understandable by non-pro
|
|
220
249
|
|
221
250
|
|
222
251
|
|
252
|
+
## 📚 Documentation
|
253
|
+
|
254
|
+
See detailed guides and API reference in the [docs](https://github.com/webgptorg/promptbook/discussions/categories/concepts) or [online](https://discord.gg/x3QWNaa89N).
|
255
|
+
|
223
256
|
## 🔒 Security
|
224
257
|
|
225
258
|
For information on reporting security vulnerabilities, see our [Security Policy](./SECURITY.md).
|
@@ -300,25 +333,56 @@ _Note: This section is not complete dictionary, more list of general AI / LLM te
|
|
300
333
|
- [🤼 Personas](https://github.com/webgptorg/promptbook/discussions/22)
|
301
334
|
- [⭕ Parameters](https://github.com/webgptorg/promptbook/discussions/83)
|
302
335
|
- [🚀 Pipeline execution](https://github.com/webgptorg/promptbook/discussions/84)
|
303
|
-
- [🧪 Expectations](https://github.com/webgptorg/promptbook/discussions/30)
|
304
|
-
- [✂️ Postprocessing](https://github.com/webgptorg/promptbook/discussions/31)
|
305
|
-
- [🔣 Words not tokens](https://github.com/webgptorg/promptbook/discussions/29)
|
306
|
-
- [☯ Separation of concerns](https://github.com/webgptorg/promptbook/discussions/32)
|
336
|
+
- [🧪 Expectations](https://github.com/webgptorg/promptbook/discussions/30) - Define what outputs should look like and how they're validated
|
337
|
+
- [✂️ Postprocessing](https://github.com/webgptorg/promptbook/discussions/31) - How outputs are refined after generation
|
338
|
+
- [🔣 Words not tokens](https://github.com/webgptorg/promptbook/discussions/29) - The human-friendly way to think about text generation
|
339
|
+
- [☯ Separation of concerns](https://github.com/webgptorg/promptbook/discussions/32) - How Book language organizes different aspects of AI workflows
|
340
|
+
|
341
|
+
### Advanced concepts
|
307
342
|
|
308
|
-
|
343
|
+
<table>
|
344
|
+
<tr>
|
345
|
+
<th>Data & Knowledge Management</th>
|
346
|
+
<th>Pipeline Control</th>
|
347
|
+
</tr>
|
348
|
+
<tr>
|
349
|
+
<td>
|
350
|
+
<ul>
|
351
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/41">📚 Knowledge (RAG)</a> - Retrieve and use external information</li>
|
352
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/54">📽 Media handling</a> - Working with images, audio, video, spreadsheets</li>
|
353
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/40">🔴 Anomaly detection</a> - Identifying unusual patterns or outputs</li>
|
354
|
+
</ul>
|
355
|
+
</td>
|
356
|
+
<td>
|
357
|
+
<ul>
|
358
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/89">🌏 Remote server</a> - Executing workflows on remote infrastructure</li>
|
359
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/66">🃏 Jokers (conditions)</a> - Adding conditional logic to workflows</li>
|
360
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/35">🔳 Metaprompting</a> - Creating prompts that generate other prompts</li>
|
361
|
+
</ul>
|
362
|
+
</td>
|
363
|
+
</tr>
|
364
|
+
<tr>
|
365
|
+
<th>Language & Output Control</th>
|
366
|
+
<th>Advanced Generation</th>
|
367
|
+
</tr>
|
368
|
+
<tr>
|
369
|
+
<td>
|
370
|
+
<ul>
|
371
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/53">🌏 Linguistically typed languages</a> - Type systems for natural language</li>
|
372
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/42">🌍 Auto-Translations</a> - Automatic multilingual support</li>
|
373
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/39">👮 Agent adversary expectations</a> - Safety and control mechanisms</li>
|
374
|
+
</ul>
|
375
|
+
</td>
|
376
|
+
<td>
|
377
|
+
<ul>
|
378
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/37">🔙 Expectation-aware generation</a> - Outputs that meet defined criteria</li>
|
379
|
+
<li><a href="https://github.com/webgptorg/promptbook/discussions/33">⏳ Just-in-time fine-tuning</a> - Dynamic model adaptation</li>
|
380
|
+
</ul>
|
381
|
+
</td>
|
382
|
+
</tr>
|
383
|
+
</table>
|
309
384
|
|
310
|
-
|
311
|
-
- [🌏 Remote server](https://github.com/webgptorg/promptbook/discussions/89)
|
312
|
-
- [🃏 Jokers (conditions)](https://github.com/webgptorg/promptbook/discussions/66)
|
313
|
-
- [🔳 Metaprompting](https://github.com/webgptorg/promptbook/discussions/35)
|
314
|
-
- [🌏 Linguistically typed languages](https://github.com/webgptorg/promptbook/discussions/53)
|
315
|
-
- [🌍 Auto-Translations](https://github.com/webgptorg/promptbook/discussions/42)
|
316
|
-
- [📽 Images, audio, video, spreadsheets](https://github.com/webgptorg/promptbook/discussions/54)
|
317
|
-
- [🔙 Expectation-aware generation](https://github.com/webgptorg/promptbook/discussions/37)
|
318
|
-
- [⏳ Just-in-time fine-tuning](https://github.com/webgptorg/promptbook/discussions/33)
|
319
|
-
- [🔴 Anomaly detection](https://github.com/webgptorg/promptbook/discussions/40)
|
320
|
-
- [👮 Agent adversary expectations](https://github.com/webgptorg/promptbook/discussions/39)
|
321
|
-
- [view more](https://github.com/webgptorg/promptbook/discussions/categories/concepts)
|
385
|
+
<p align="center"><a href="https://github.com/webgptorg/promptbook/discussions/categories/concepts">🔍 View more concepts</a></p>
|
322
386
|
|
323
387
|
|
324
388
|
|
@@ -373,36 +437,28 @@ If you have a question [start a discussion](https://github.com/webgptorg/promptb
|
|
373
437
|
- [❔ Is Promptbook using RAG _(Retrieval-Augmented Generation)_?](https://github.com/webgptorg/promptbook/discussions/123)
|
374
438
|
- [❔ Is Promptbook using function calling?](https://github.com/webgptorg/promptbook/discussions/124)
|
375
439
|
|
376
|
-
##
|
440
|
+
## 📅 Changelog
|
377
441
|
|
378
442
|
See [CHANGELOG.md](./CHANGELOG.md)
|
379
443
|
|
380
444
|
## 📜 License
|
381
445
|
|
382
|
-
|
383
|
-
|
384
|
-
## 🎯 Todos
|
446
|
+
This project is licensed under [BUSL 1.1](./LICENSE.md).
|
385
447
|
|
386
|
-
|
448
|
+
## 🤝 Contributing
|
387
449
|
|
388
|
-
|
450
|
+
We welcome contributions! See [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.
|
389
451
|
|
390
|
-
|
391
|
-
|
392
|
-
<a href="https://promptbook.studio/">
|
393
|
-
<img src="./design/promptbook-studio-logo.png" alt="Partner 3" height="70">
|
394
|
-
</a>
|
395
|
-
|
396
|
-
<a href="https://technologickainkubace.org/en/about-technology-incubation/about-the-project/">
|
397
|
-
<img src="./other/partners/CI-Technology-Incubation.png" alt="Technology Incubation" height="70">
|
398
|
-
</a>
|
399
|
-
|
400
|
-
</div>
|
452
|
+
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).
|
401
453
|
|
402
|
-
##
|
454
|
+
## 🆘 Support & Community
|
403
455
|
|
404
|
-
|
456
|
+
Need help with Book language? We're here for you!
|
405
457
|
|
406
|
-
|
458
|
+
- 💬 [Join our Discord community](https://discord.gg/x3QWNaa89N) for real-time support
|
459
|
+
- 📝 [Browse our GitHub discussions](https://github.com/webgptorg/promptbook/discussions) for FAQs and community knowledge
|
460
|
+
- 🐛 [Report issues](https://github.com/webgptorg/book/issues) for bugs or feature requests
|
461
|
+
- 📚 Visit [ptbk.io](https://ptbk.io) for more resources and documentation
|
462
|
+
- 📧 Contact us directly through the channels listed in our [signpost](./SIGNPOST.md)
|
407
463
|
|
408
|
-
|
464
|
+
We welcome contributions and feedback to make Book language better for everyone!
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "ptbk",
|
3
|
-
"version": "0.
|
4
|
-
"description": "
|
3
|
+
"version": "0.94.0-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": {
|
@@ -60,10 +60,10 @@
|
|
60
60
|
"words": []
|
61
61
|
},
|
62
62
|
"peerDependencies": {
|
63
|
-
"@promptbook/core": "0.
|
63
|
+
"@promptbook/core": "0.94.0-0"
|
64
64
|
},
|
65
65
|
"dependencies": {
|
66
|
-
"promptbook": "0.
|
66
|
+
"promptbook": "0.94.0-0"
|
67
67
|
},
|
68
68
|
"bin": {
|
69
69
|
"ptbk": "bin/promptbook-cli-proxy.js"
|