@promptbook/core 0.89.0-16 β†’ 0.89.0-18

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
@@ -248,6 +248,10 @@ But unlike programming languages, it is designed to be understandable by non-pro
248
248
 
249
249
 
250
250
 
251
+ ## πŸ”’ Security
252
+
253
+ For information on reporting security vulnerabilities, see our [Security Policy](./SECURITY.md).
254
+
251
255
  ## πŸ“¦ Packages _(for developers)_
252
256
 
253
257
  This library is divided into several packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
@@ -304,7 +308,7 @@ The following glossary is used to clarify certain concepts:
304
308
  ### General LLM / AI terms
305
309
 
306
310
  - **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.
307
- - **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.
311
+ - [**Pipeline, workflow scenario 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.](https://github.com/webgptorg/promptbook/discussions/88)
308
312
  - **Fine-tuning** is a process where a pre-trained AI model is further trained on a specific dataset to improve its performance on a specific task.
309
313
  - **Zero-shot learning** is a machine learning paradigm where a model is trained to perform a task without any labeled examples. Instead, the model is provided with a description of the task and is expected to generate the correct output.
310
314
  - **Few-shot learning** is a machine learning paradigm where a model is trained to perform a task with only a few labeled examples. This is in contrast to traditional machine learning, where models are trained on large datasets.
@@ -312,10 +316,6 @@ The following glossary is used to clarify certain concepts:
312
316
  - **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.
313
317
  - **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.
314
318
 
315
-
316
-
317
-
318
-
319
319
  _Note: This section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
320
320
 
321
321
 
@@ -429,6 +429,8 @@ See [TODO.md](./TODO.md)
429
429
 
430
430
  ## πŸ–‹οΈ Contributing
431
431
 
432
- We are open to pull requests, feedback, and suggestions.
432
+ 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).
433
+
434
+ ## πŸ“ž Support
433
435
 
434
- You can also ⭐ star the project, [follow us on GitHub](https://github.com/hejny) or [various other social networks](https://www.pavolhejny.com/contact/).
436
+ If you need help or have questions, please check our [Support Resources](./SUPPORT.md).
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.89.0-16';
30
+ const PROMPTBOOK_ENGINE_VERSION = '0.89.0-18';
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
@@ -158,6 +158,36 @@ class ParseError extends Error {
158
158
  * TODO: Maybe split `ParseError` and `ApplyError`
159
159
  */
160
160
 
161
+ /**
162
+ * Available remote servers for the Promptbook
163
+ *
164
+ * @public exported from `@promptbook/core` <- TODO: !!!! Test that this is really exported
165
+ */
166
+ const REMOTE_SERVER_URLS = [
167
+ {
168
+ title: 'Promptbook',
169
+ description: `Servers of Promptbook.studio`,
170
+ owner: 'AI Web, LLC <legal@ptbk.io> (https://www.ptbk.io/)',
171
+ isAnonymousModeAllowed: true,
172
+ urls: [
173
+ 'https://s4.ptbk.io/promptbook',
174
+ 'https://s3.ptbk.io/promptbook',
175
+ 'https://s2.ptbk.io/promptbook',
176
+ 'https://s1.ptbk.io/promptbook',
177
+ ],
178
+ },
179
+ {
180
+ title: 'Pavol Promptbook Server',
181
+ description: `Personal server of Pavol HejnΓ½ with simple testing server, DO NOT USE IT FOR PRODUCTION`,
182
+ owner: 'Pavol HejnΓ½ <pavol@ptbk.io> (https://www.pavolhejny.com/)',
183
+ isAnonymousModeAllowed: true,
184
+ urls: ['https://api.pavolhejny.com/promptbook'],
185
+ },
186
+ ];
187
+ /**
188
+ * Note: [πŸ’ž] Ignore a discrepancy between file name and entity name
189
+ */
190
+
161
191
  /**
162
192
  * Returns the same value that is passed as argument.
163
193
  * No side effects.
@@ -385,21 +415,12 @@ const DEFAULT_PIPELINE_COLLECTION_BASE_FILENAME = `index`;
385
415
  const MOMENT_ARG_THRESHOLDS = {
386
416
  ss: 3, // <- least number of seconds to be counted in seconds, minus 1. Must be set after setting the `s` unit or without setting the `s` unit.
387
417
  };
388
- /**
389
- * Available remote servers for the Promptbook
390
- *
391
- * @public exported from `@promptbook/core`
392
- */
393
- const REMOTE_SERVER_URLS = [
394
- 'https://s1.ptbk.io/promptbook',
395
- 'https://api.pavolhejny.com/promptbook',
396
- ];
397
418
  /**
398
419
  * Default remote server URL for the Promptbook
399
420
  *
400
421
  * @public exported from `@promptbook/core`
401
422
  */
402
- const DEFAULT_REMOTE_SERVER_URL = REMOTE_SERVER_URLS[0];
423
+ const DEFAULT_REMOTE_SERVER_URL = REMOTE_SERVER_URLS[0].urls[0];
403
424
  // <- TODO: [πŸ§œβ€β™‚οΈ]
404
425
  /**
405
426
  * @@@