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