@promptbook/templates 0.86.31 → 0.88.0-10

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 CHANGED
@@ -23,6 +23,10 @@
23
23
 
24
24
 
25
25
 
26
+ <blockquote style="color: #ff8811">
27
+ <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>.
28
+ </blockquote>
29
+
26
30
  ## 📦 Package `@promptbook/templates`
27
31
 
28
32
  - Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
@@ -56,8 +60,6 @@ Rest of the documentation is common for **entire promptbook ecosystem**:
56
60
 
57
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**!
58
62
 
59
-
60
-
61
63
  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!
62
64
 
63
65
  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.
@@ -114,27 +116,28 @@ Promptbook project is ecosystem of multiple projects and tools, following is a l
114
116
  </tbody>
115
117
  </table>
116
118
 
119
+ Hello world examples:
120
+
121
+ - [Hello world](https://github.com/webgptorg/hello-world)
122
+ - [Hello world in Node.js](https://github.com/webgptorg/hello-world-node-js)
123
+ - [Hello world in Next.js](https://github.com/webgptorg/hello-world-next-js)
124
+
117
125
  We also have a community of developers and users of **Promptbook**:
118
126
 
119
127
  - [Discord community](https://discord.gg/x3QWNaa89N)
120
128
  - [Landing page `ptbk.io`](https://ptbk.io)
121
129
  - [Github discussions](https://github.com/webgptorg/promptbook/discussions)
122
130
  - [LinkedIn `Promptbook`](https://linkedin.com/company/promptbook)
123
- - [Facebook `Promptbook`](https://www.facebook.com/61560776453536)
131
+ - [Facebook `Promptbook`](https://www.facebook.com/61560776453536)
124
132
 
125
133
  And **Promptbook.studio** branded socials:
126
134
 
127
-
128
-
129
135
  - [Instagram `@promptbook.studio`](https://www.instagram.com/promptbook.studio/)
130
136
 
131
137
  And **Promptujeme** sub-brand:
132
138
 
133
139
  _/Subbrand for Czech clients/_
134
140
 
135
-
136
-
137
-
138
141
  - [Promptujeme.cz](https://www.promptujeme.cz/)
139
142
  - [Facebook `Promptujeme`](https://www.facebook.com/promptujeme/)
140
143
 
@@ -152,8 +155,6 @@ _/Sub-brand for images and graphics generated via Promptbook prompting/_
152
155
 
153
156
  ## 💙 The Book language
154
157
 
155
-
156
-
157
158
  Following is the documentation and blueprint of the [Book language](https://github.com/webgptorg/book).
158
159
 
159
160
  Book is a language that can be used to write AI applications, agents, workflows, automations, knowledgebases, translators, sheet processors, email automations and more. It allows you to harness the power of AI models in human-like terms, without the need to know the specifics and technicalities of the models.
@@ -203,8 +204,6 @@ Personas can have access to different knowledge, tools and actions. They can als
203
204
 
204
205
  - [PERSONA](https://github.com/webgptorg/promptbook/blob/main/documents/commands/PERSONA.md)
205
206
 
206
-
207
-
208
207
  ### **How:** Knowledge, Instruments and Actions
209
208
 
210
209
  The resources used by the personas are used to do the work.
@@ -251,7 +250,7 @@ Or you can install them separately:
251
250
  - ⭐ **[@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
252
251
  - **[@promptbook/markdown-utils](https://www.npmjs.com/package/@promptbook/markdown-utils)** - Utility functions used for processing markdown
253
252
  - _(Not finished)_ **[@promptbook/wizzard](https://www.npmjs.com/package/@promptbook/wizzard)** - Wizard for creating+running promptbooks in single line
254
- - **[@promptbook/execute-javascript](https://www.npmjs.com/package/@promptbook/execute-javascript)** - Execution tools for javascript inside promptbooks
253
+ - **[@promptbook/javascript](https://www.npmjs.com/package/@promptbook/javascript)** - Execution tools for javascript inside promptbooks
255
254
  - **[@promptbook/openai](https://www.npmjs.com/package/@promptbook/openai)** - Execution tools for OpenAI API, wrapper around OpenAI SDK
256
255
  - **[@promptbook/anthropic-claude](https://www.npmjs.com/package/@promptbook/anthropic-claude)** - Execution tools for Anthropic Claude API, wrapper around Anthropic Claude SDK
257
256
  - **[@promptbook/vercel](https://www.npmjs.com/package/@promptbook/vercel)** - Adapter for Vercel functionalities
@@ -280,16 +279,9 @@ Or you can install them separately:
280
279
 
281
280
  ## 📚 Dictionary
282
281
 
283
-
284
-
285
-
286
-
287
-
288
- ### 📚 Dictionary
289
-
290
282
  The following glossary is used to clarify certain concepts:
291
283
 
292
- #### General LLM / AI terms
284
+ ### General LLM / AI terms
293
285
 
294
286
  - **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.
295
287
  - **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.
@@ -300,13 +292,9 @@ The following glossary is used to clarify certain concepts:
300
292
  - **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.
301
293
  - **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.
302
294
 
295
+ _Note: This section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
303
296
 
304
-
305
- _Note: Thos section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
306
-
307
-
308
-
309
- #### 💯 Core concepts
297
+ ### 💯 Core concepts
310
298
 
311
299
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
312
300
  - [📯 Pipeline](https://github.com/webgptorg/promptbook/discussions/64)
@@ -319,7 +307,7 @@ _Note: Thos section is not complete dictionary, more list of general AI / LLM te
319
307
  - [🔣 Words not tokens](https://github.com/webgptorg/promptbook/discussions/29)
320
308
  - [☯ Separation of concerns](https://github.com/webgptorg/promptbook/discussions/32)
321
309
 
322
- ##### Advanced concepts
310
+ #### Advanced concepts
323
311
 
324
312
  - [📚 Knowledge (Retrieval-augmented generation)](https://github.com/webgptorg/promptbook/discussions/41)
325
313
  - [🌏 Remote server](https://github.com/webgptorg/promptbook/discussions/89)
@@ -336,17 +324,9 @@ _Note: Thos section is not complete dictionary, more list of general AI / LLM te
336
324
 
337
325
 
338
326
 
339
- ### Terms specific to Promptbook TypeScript implementation
327
+ ## 🚂 Promptbook Engine
340
328
 
341
- - Anonymous mode
342
- - Application mode
343
-
344
-
345
-
346
- ## 🔌 Usage in Typescript / Javascript
347
-
348
- - [Simple usage](./examples/usage/simple-script)
349
- - [Usage with client and remote server](./examples/usage/remote)
329
+ ![Schema of Promptbook Engine](./documents/promptbook-engine.svg)
350
330
 
351
331
  ## ➕➖ When to use Promptbook?
352
332
 
@@ -407,20 +387,18 @@ Promptbook project is under [BUSL 1.1 is an SPDX license](https://spdx.org/licen
407
387
 
408
388
  See [TODO.md](./TODO.md)
409
389
 
410
-
411
-
412
390
  ## 🤝 Partners
413
391
 
414
392
  <div style="display: flex; align-items: center; gap: 20px;">
415
393
 
416
394
  <a href="https://promptbook.studio/">
417
- <img src="./design/promptbook-studio-logo.png" alt="Partner 3" height="100">
395
+ <img src="./design/promptbook-studio-logo.png" alt="Partner 3" height="70">
418
396
  </a>
419
397
 
420
398
  <a href="https://technologickainkubace.org/en/about-technology-incubation/about-the-project/">
421
- <img src="./other/partners/CI-Technology-Incubation.png" alt="Technology Incubation" height="100">
399
+ <img src="./other/partners/CI-Technology-Incubation.png" alt="Technology Incubation" height="70">
422
400
  </a>
423
-
401
+
424
402
  </div>
425
403
 
426
404
  ## 🖋️ Contributing