ptbk 0.94.0-7 → 0.95.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 +8 -17
- package/package.json +26 -15
package/README.md
CHANGED
@@ -32,17 +32,15 @@ Write AI applications using plain human language across multiple models and plat
|
|
32
32
|
|
33
33
|
## 🤍 The Book Abstract
|
34
34
|
|
35
|
-
**It's time for a paradigm shift! The future of software is in plain English, French or Latin.**
|
35
|
+
**It's time for a paradigm shift! The future of software is written in plain English, French, or Latin.**
|
36
36
|
|
37
37
|
During the computer revolution, we have seen [multiple generations of computer languages](https://github.com/webgptorg/promptbook/discussions/180), from the physical rewiring of the vacuum tubes through low-level machine code to the high-level languages like Python or JavaScript. And now, we're on the edge of the **next revolution**!
|
38
38
|
|
39
|
-
|
40
|
-
|
41
39
|
It's a revolution of writing software in **plain human language** that is understandable and executable by both humans and machines – and it's going to change everything!
|
42
40
|
|
43
41
|
The incredible growth in power of microprocessors and the Moore's Law have been the driving force behind the ever-more powerful languages, and it's been an amazing journey! Similarly, the large language models (like GPT or Claude) are the next big thing in language technology, and they're set to transform the way we interact with computers.
|
44
42
|
|
45
|
-
This shift
|
43
|
+
This shift will happen whether we're ready or not. Our mission is to make it excellent, not just good.
|
46
44
|
|
47
45
|
**Join us in this journey!**
|
48
46
|
|
@@ -163,9 +161,6 @@ Join our growing community of developers and users:
|
|
163
161
|
|
164
162
|
_A concise, Markdown-based DSL for crafting AI workflows and automations._
|
165
163
|
|
166
|
-
|
167
|
-
|
168
|
-
|
169
164
|
### Introduction
|
170
165
|
|
171
166
|
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.
|
@@ -193,7 +188,7 @@ Book is a Markdown-based language that simplifies the creation of AI application
|
|
193
188
|
→ {article}
|
194
189
|
```
|
195
190
|
|
196
|
-
Each part of the book defines one of
|
191
|
+
Each part of the book defines one of three circles:
|
197
192
|
|
198
193
|
### **1. What:** Workflows, Tasks and Parameters
|
199
194
|
|
@@ -215,8 +210,6 @@ Personas can have access to different knowledge, tools and actions. They can als
|
|
215
210
|
|
216
211
|
- [PERSONA](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PERSONA.md)
|
217
212
|
|
218
|
-
|
219
|
-
|
220
213
|
### **3. How:** Knowledge, Instruments and Actions
|
221
214
|
|
222
215
|
The resources used by the personas are used to do the work.
|
@@ -231,9 +224,9 @@ The resources used by the personas are used to do the work.
|
|
231
224
|
|
232
225
|
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.
|
233
226
|
|
234
|
-
The file has `.book` extension
|
227
|
+
The file has a `.book` extension and uses UTF-8 encoding without BOM.
|
235
228
|
|
236
|
-
|
229
|
+
Books have two variants: flat — just a prompt without structure, and full — with tasks, commands, and prompts.
|
237
230
|
|
238
231
|
As it is source code, it can leverage all the features of version control systems like git and does not suffer from the problems of binary formats, proprietary formats, or no-code solutions.
|
239
232
|
|
@@ -264,13 +257,13 @@ Or you can install them separately:
|
|
264
257
|
|
265
258
|
- ⭐ **[ptbk](https://www.npmjs.com/package/ptbk)** - Bundle of all packages, when you want to install everything and you don't care about the size
|
266
259
|
- **[promptbook](https://www.npmjs.com/package/promptbook)** - Same as `ptbk`
|
267
|
-
- ⭐🧙♂️ **[@promptbook/
|
260
|
+
- ⭐🧙♂️ **[@promptbook/wizard](https://www.npmjs.com/package/@promptbook/wizard)** - Wizard to just run the books in node without any struggle
|
268
261
|
- **[@promptbook/core](https://www.npmjs.com/package/@promptbook/core)** - Core of the library, it contains the main logic for promptbooks
|
269
262
|
- **[@promptbook/node](https://www.npmjs.com/package/@promptbook/node)** - Core of the library for Node.js environment
|
270
263
|
- **[@promptbook/browser](https://www.npmjs.com/package/@promptbook/browser)** - Core of the library for browser environment
|
271
264
|
- ⭐ **[@promptbook/utils](https://www.npmjs.com/package/@promptbook/utils)** - Utility functions used in the library but also useful for individual use in preprocessing and postprocessing LLM inputs and outputs
|
272
265
|
- **[@promptbook/markdown-utils](https://www.npmjs.com/package/@promptbook/markdown-utils)** - Utility functions used for processing markdown
|
273
|
-
- _(Not finished)_ **[@promptbook/
|
266
|
+
- _(Not finished)_ **[@promptbook/wizard](https://www.npmjs.com/package/@promptbook/wizard)** - Wizard for creating+running promptbooks in single line
|
274
267
|
- **[@promptbook/javascript](https://www.npmjs.com/package/@promptbook/javascript)** - Execution tools for javascript inside promptbooks
|
275
268
|
- **[@promptbook/openai](https://www.npmjs.com/package/@promptbook/openai)** - Execution tools for OpenAI API, wrapper around OpenAI SDK
|
276
269
|
- **[@promptbook/anthropic-claude](https://www.npmjs.com/package/@promptbook/anthropic-claude)** - Execution tools for Anthropic Claude API, wrapper around Anthropic Claude SDK
|
@@ -314,9 +307,7 @@ The following glossary is used to clarify certain concepts:
|
|
314
307
|
- **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.
|
315
308
|
- **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.
|
316
309
|
|
317
|
-
_Note: This section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
318
|
-
|
319
|
-
|
310
|
+
_Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
320
311
|
|
321
312
|
### 💯 Core concepts
|
322
313
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ptbk",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.95.0",
|
4
4
|
"description": "Promptbook: Run AI apps in plain human language across multiple models and platforms",
|
5
5
|
"private": false,
|
6
6
|
"sideEffects": false,
|
@@ -36,6 +36,29 @@
|
|
36
36
|
"o1-mini",
|
37
37
|
"o1-preview",
|
38
38
|
"anthropic",
|
39
|
+
"claude",
|
40
|
+
"claude-3",
|
41
|
+
"claude-3-opus",
|
42
|
+
"claude-3-sonnet",
|
43
|
+
"claude-3-haiku",
|
44
|
+
"gemini",
|
45
|
+
"gemini-pro",
|
46
|
+
"gemini-flash",
|
47
|
+
"mixtral",
|
48
|
+
"mistral",
|
49
|
+
"ollama",
|
50
|
+
"ai-orchestration",
|
51
|
+
"prompt-engineering",
|
52
|
+
"llmops",
|
53
|
+
"multimodal",
|
54
|
+
"reasoning",
|
55
|
+
"rag",
|
56
|
+
"embeddings",
|
57
|
+
"function-calling",
|
58
|
+
"large-language-models",
|
59
|
+
"ai-application-framework",
|
60
|
+
"text-generation",
|
61
|
+
"ai-agents",
|
39
62
|
"LLMOps"
|
40
63
|
],
|
41
64
|
"license": "BUSL-1.1",
|
@@ -47,23 +70,11 @@
|
|
47
70
|
"node": ">=16.0.0",
|
48
71
|
"npm": ">=8.0.0"
|
49
72
|
},
|
50
|
-
"cspell": {
|
51
|
-
"version": "0.2",
|
52
|
-
"language": "en",
|
53
|
-
"ignorePaths": [
|
54
|
-
"node_modules",
|
55
|
-
".next",
|
56
|
-
"coverage",
|
57
|
-
"dist",
|
58
|
-
".git"
|
59
|
-
],
|
60
|
-
"words": []
|
61
|
-
},
|
62
73
|
"peerDependencies": {
|
63
|
-
"@promptbook/core": "0.
|
74
|
+
"@promptbook/core": "0.95.0"
|
64
75
|
},
|
65
76
|
"dependencies": {
|
66
|
-
"promptbook": "0.
|
77
|
+
"promptbook": "0.95.0"
|
67
78
|
},
|
68
79
|
"bin": {
|
69
80
|
"ptbk": "bin/promptbook-cli-proxy.js"
|