@promptbook/core 0.94.0-7 → 0.94.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 +6 -11
- package/esm/index.es.js +11 -7
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +24 -1
- package/umd/index.umd.js +11 -7
- package/umd/index.umd.js.map +1 -1
package/README.md
CHANGED
|
@@ -25,10 +25,6 @@ Write AI applications using plain human language across multiple models and plat
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
<blockquote style="color: #ff8811">
|
|
29
|
-
<b>⚠ Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>.
|
|
30
|
-
</blockquote>
|
|
31
|
-
|
|
32
28
|
## 📦 Package `@promptbook/core`
|
|
33
29
|
|
|
34
30
|
- Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
|
|
@@ -60,7 +56,7 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
|
|
|
60
56
|
|
|
61
57
|
## 🤍 The Book Abstract
|
|
62
58
|
|
|
63
|
-
**It's time for a paradigm shift! The future of software is in plain English, French or Latin.**
|
|
59
|
+
**It's time for a paradigm shift! The future of software is written in plain English, French, or Latin.**
|
|
64
60
|
|
|
65
61
|
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**!
|
|
66
62
|
|
|
@@ -70,7 +66,7 @@ It's a revolution of writing software in **plain human language** that is unders
|
|
|
70
66
|
|
|
71
67
|
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.
|
|
72
68
|
|
|
73
|
-
This shift
|
|
69
|
+
This shift will happen whether we're ready or not. Our mission is to make it excellent, not just good.
|
|
74
70
|
|
|
75
71
|
**Join us in this journey!**
|
|
76
72
|
|
|
@@ -193,7 +189,6 @@ _A concise, Markdown-based DSL for crafting AI workflows and automations._
|
|
|
193
189
|
|
|
194
190
|
|
|
195
191
|
|
|
196
|
-
|
|
197
192
|
### Introduction
|
|
198
193
|
|
|
199
194
|
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.
|
|
@@ -221,7 +216,7 @@ Book is a Markdown-based language that simplifies the creation of AI application
|
|
|
221
216
|
→ {article}
|
|
222
217
|
```
|
|
223
218
|
|
|
224
|
-
Each part of the book defines one of
|
|
219
|
+
Each part of the book defines one of three circles:
|
|
225
220
|
|
|
226
221
|
### **1. What:** Workflows, Tasks and Parameters
|
|
227
222
|
|
|
@@ -259,9 +254,9 @@ The resources used by the personas are used to do the work.
|
|
|
259
254
|
|
|
260
255
|
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.
|
|
261
256
|
|
|
262
|
-
The file has `.book` extension
|
|
257
|
+
The file has a `.book` extension and uses UTF-8 encoding without BOM.
|
|
263
258
|
|
|
264
|
-
|
|
259
|
+
Books have two variants: flat — just a prompt without structure, and full — with tasks, commands, and prompts.
|
|
265
260
|
|
|
266
261
|
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.
|
|
267
262
|
|
|
@@ -342,7 +337,7 @@ The following glossary is used to clarify certain concepts:
|
|
|
342
337
|
- **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.
|
|
343
338
|
- **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.
|
|
344
339
|
|
|
345
|
-
_Note: This section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
|
340
|
+
_Note: This section is not a complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
|
|
346
341
|
|
|
347
342
|
|
|
348
343
|
|
package/esm/index.es.js
CHANGED
|
@@ -27,7 +27,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
27
27
|
* @generated
|
|
28
28
|
* @see https://github.com/webgptorg/promptbook
|
|
29
29
|
*/
|
|
30
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.94.0
|
|
30
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.94.0';
|
|
31
31
|
/**
|
|
32
32
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
33
33
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -10960,7 +10960,7 @@ const _AzureOpenAiMetadataRegistration = $llmToolsMetadataRegister.register({
|
|
|
10960
10960
|
packageName: '@promptbook/azure-openai',
|
|
10961
10961
|
className: 'AzureOpenAiExecutionTools',
|
|
10962
10962
|
options: {
|
|
10963
|
-
apiKey: '
|
|
10963
|
+
apiKey: '',
|
|
10964
10964
|
resourceName: 'my-resource-name',
|
|
10965
10965
|
deploymentName: 'my-deployment-name',
|
|
10966
10966
|
maxRequestsPerMinute: DEFAULT_MAX_REQUESTS_PER_MINUTE,
|
|
@@ -11131,6 +11131,13 @@ const _GoogleMetadataRegistration = $llmToolsMetadataRegister.register({
|
|
|
11131
11131
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
11132
11132
|
*/
|
|
11133
11133
|
|
|
11134
|
+
/**
|
|
11135
|
+
* Default base URL for Ollama API
|
|
11136
|
+
*
|
|
11137
|
+
* @public exported from `@promptbook/ollama`
|
|
11138
|
+
*/
|
|
11139
|
+
const DEFAULT_OLLAMA_BASE_URL = 'http://localhost:11434/v1';
|
|
11140
|
+
|
|
11134
11141
|
/**
|
|
11135
11142
|
* Registration of LLM provider metadata
|
|
11136
11143
|
*
|
|
@@ -11153,8 +11160,7 @@ const _OllamaMetadataRegistration = $llmToolsMetadataRegister.register({
|
|
|
11153
11160
|
packageName: '@promptbook/ollama',
|
|
11154
11161
|
className: 'OllamaExecutionTools',
|
|
11155
11162
|
options: {
|
|
11156
|
-
baseURL:
|
|
11157
|
-
model: 'llama2',
|
|
11163
|
+
baseURL: DEFAULT_OLLAMA_BASE_URL,
|
|
11158
11164
|
maxRequestsPerMinute: DEFAULT_MAX_REQUESTS_PER_MINUTE,
|
|
11159
11165
|
},
|
|
11160
11166
|
};
|
|
@@ -11167,8 +11173,6 @@ const _OllamaMetadataRegistration = $llmToolsMetadataRegister.register({
|
|
|
11167
11173
|
className: 'OllamaExecutionTools',
|
|
11168
11174
|
options: {
|
|
11169
11175
|
baseURL: env.OLLAMA_BASE_URL,
|
|
11170
|
-
model: env.OLLAMA_MODEL || 'llama2',
|
|
11171
|
-
maxRequestsPerMinute: DEFAULT_MAX_REQUESTS_PER_MINUTE,
|
|
11172
11176
|
},
|
|
11173
11177
|
};
|
|
11174
11178
|
}
|
|
@@ -11261,7 +11265,7 @@ const _OpenAiAssistantMetadataRegistration = $llmToolsMetadataRegister.register(
|
|
|
11261
11265
|
options: {
|
|
11262
11266
|
apiKey: env.OPENAI_API_KEY!,
|
|
11263
11267
|
assistantId: env.OPENAI_XXX!
|
|
11264
|
-
},
|
|
11268
|
+
} satisfies OpenAiAssistantExecutionToolsOptions,
|
|
11265
11269
|
};
|
|
11266
11270
|
}
|
|
11267
11271
|
|