Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@promptbook/execute-javascript

Package Overview
Dependencies
Maintainers
0
Versions
463
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@promptbook/execute-javascript - npm Package Compare versions

Comparing version 0.74.0-0 to 0.74.0-2

esm/typings/src/cli/cli-commands/run.d.ts

18

esm/index.es.js

@@ -8,6 +8,16 @@ import _spaceTrim, { spaceTrim } from 'spacetrim';

/**
* The version of the Promptbook library
* The version of the Book language
*
* @see https://github.com/webgptorg/book
*/
var PROMPTBOOK_VERSION = '0.73.0';
// TODO: [main] !!!! List here all the versions and annotate + put into script
var BOOK_LANGUAGE_VERSION = '1.0.0';
/**
* The version of the Promptbook engine
*
* @see https://github.com/webgptorg/promptbook
*/
var PROMPTBOOK_ENGINE_VERSION = '0.74.0-1';
/**
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
*/

@@ -1282,3 +1292,3 @@ /*! *****************************************************************************

export { JavascriptEvalExecutionTools, JavascriptExecutionTools, POSTPROCESSING_FUNCTIONS, PROMPTBOOK_VERSION };
export { BOOK_LANGUAGE_VERSION, JavascriptEvalExecutionTools, JavascriptExecutionTools, POSTPROCESSING_FUNCTIONS, PROMPTBOOK_ENGINE_VERSION };
//# sourceMappingURL=index.es.js.map

@@ -1,2 +0,2 @@

import { PROMPTBOOK_VERSION } from '../version';
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
import { ANTHROPIC_CLAUDE_MODELS } from '../llm-providers/anthropic-claude/anthropic-claude-models';

@@ -9,3 +9,3 @@ import { AnthropicClaudeExecutionTools } from '../llm-providers/anthropic-claude/AnthropicClaudeExecutionTools';

import { _AnthropicClaudeRegistration } from '../llm-providers/anthropic-claude/register-constructor';
export { PROMPTBOOK_VERSION };
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
export { ANTHROPIC_CLAUDE_MODELS };

@@ -12,0 +12,0 @@ export { AnthropicClaudeExecutionTools };

@@ -1,2 +0,2 @@

import { PROMPTBOOK_VERSION } from '../version';
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
import { AzureOpenAiExecutionTools } from '../llm-providers/azure-openai/AzureOpenAiExecutionTools';

@@ -6,3 +6,3 @@ import type { AzureOpenAiExecutionToolsOptions } from '../llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions';

import { _AzureOpenAiRegistration } from '../llm-providers/azure-openai/register-constructor';
export { PROMPTBOOK_VERSION };
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
export { AzureOpenAiExecutionTools };

@@ -9,0 +9,0 @@ export type { AzureOpenAiExecutionToolsOptions };

@@ -1,2 +0,2 @@

import { PROMPTBOOK_VERSION } from '../version';
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
import { SimplePromptInterfaceTools } from '../dialogs/simple-prompt/SimplePromptInterfaceTools';

@@ -6,3 +6,3 @@ import { $provideScrapersForBrowser } from '../scrapers/_common/register/$provideScrapersForBrowser';

import { getSessionStorage } from '../storage/local-storage/getSessionStorage';
export { PROMPTBOOK_VERSION };
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
export { SimplePromptInterfaceTools };

@@ -9,0 +9,0 @@ export { $provideScrapersForBrowser };

@@ -1,2 +0,2 @@

import { PROMPTBOOK_VERSION } from '../version';
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
import { _CLI } from '../cli/main';

@@ -21,3 +21,3 @@ import { _AnthropicClaudeMetadataRegistration } from '../llm-providers/anthropic-claude/register-configuration';

import { _WebsiteScraperMetadataRegistration } from '../scrapers/website/register-metadata';
export { PROMPTBOOK_VERSION };
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
export { _CLI };

@@ -24,0 +24,0 @@ export { _AnthropicClaudeMetadataRegistration };

@@ -1,2 +0,2 @@

import { PROMPTBOOK_VERSION } from '../version';
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
import { collectionToJson } from '../collection/collectionToJson';

@@ -94,3 +94,3 @@ import { createCollectionFromJson } from '../collection/constructors/createCollectionFromJson';

import { EXPECTATION_UNITS } from '../types/PipelineJson/Expectations';
export { PROMPTBOOK_VERSION };
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
export { collectionToJson };

@@ -97,0 +97,0 @@ export { createCollectionFromJson };

@@ -1,8 +0,8 @@

import { PROMPTBOOK_VERSION } from '../version';
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
import { createDocumentScraper } from '../scrapers/document/createDocumentScraper';
import { DocumentScraper } from '../scrapers/document/DocumentScraper';
import { _DocumentScraperRegistration } from '../scrapers/document/register-constructor';
export { PROMPTBOOK_VERSION };
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
export { createDocumentScraper };
export { DocumentScraper };
export { _DocumentScraperRegistration };

@@ -1,8 +0,8 @@

import { PROMPTBOOK_VERSION } from '../version';
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
import { JavascriptEvalExecutionTools } from '../scripting/javascript/JavascriptEvalExecutionTools';
import { JavascriptExecutionTools } from '../scripting/javascript/JavascriptExecutionTools';
import { POSTPROCESSING_FUNCTIONS } from '../scripting/javascript/postprocessing-functions';
export { PROMPTBOOK_VERSION };
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
export { JavascriptEvalExecutionTools };
export { JavascriptExecutionTools };
export { POSTPROCESSING_FUNCTIONS };

@@ -1,6 +0,6 @@

import { PROMPTBOOK_VERSION } from '../version';
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
import { MockedEchoLlmExecutionTools } from '../llm-providers/mocked/MockedEchoLlmExecutionTools';
import { MockedFackedLlmExecutionTools } from '../llm-providers/mocked/MockedFackedLlmExecutionTools';
export { PROMPTBOOK_VERSION };
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
export { MockedEchoLlmExecutionTools };
export { MockedFackedLlmExecutionTools };

@@ -1,6 +0,6 @@

import { PROMPTBOOK_VERSION } from '../version';
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
import { LangtailExecutionTools } from '../llm-providers/langtail/LangtailExecutionTools';
import type { LangtailExecutionToolsOptions } from '../llm-providers/langtail/LangtailExecutionToolsOptions';
export { PROMPTBOOK_VERSION };
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
export { LangtailExecutionTools };
export type { LangtailExecutionToolsOptions };

@@ -1,8 +0,8 @@

import { PROMPTBOOK_VERSION } from '../version';
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
import { createLegacyDocumentScraper } from '../scrapers/document-legacy/createLegacyDocumentScraper';
import { LegacyDocumentScraper } from '../scrapers/document-legacy/LegacyDocumentScraper';
import { _LegacyDocumentScraperRegistration } from '../scrapers/document-legacy/register-constructor';
export { PROMPTBOOK_VERSION };
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
export { createLegacyDocumentScraper };
export { LegacyDocumentScraper };
export { _LegacyDocumentScraperRegistration };

@@ -1,2 +0,2 @@

import { PROMPTBOOK_VERSION } from '../version';
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
import { extractBlock } from '../postprocessing/utils/extractBlock';

@@ -24,3 +24,3 @@ import { extractJsonBlock } from '../postprocessing/utils/extractJsonBlock';

import { splitMarkdownIntoSections } from '../utils/markdown/splitMarkdownIntoSections';
export { PROMPTBOOK_VERSION };
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
export { extractBlock };

@@ -27,0 +27,0 @@ export { extractJsonBlock };

@@ -1,2 +0,2 @@

import { PROMPTBOOK_VERSION } from '../version';
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
import { createCollectionFromDirectory } from '../collection/constructors/createCollectionFromDirectory';

@@ -12,3 +12,3 @@ import { $provideExecutablesForNode } from '../executables/$provideExecutablesForNode';

import { $execCommands } from '../utils/execCommand/$execCommands';
export { PROMPTBOOK_VERSION };
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
export { createCollectionFromDirectory };

@@ -15,0 +15,0 @@ export { $provideExecutablesForNode };

@@ -1,2 +0,2 @@

import { PROMPTBOOK_VERSION } from '../version';
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
import { createOpenAiAssistantExecutionTools } from '../llm-providers/openai/createOpenAiAssistantExecutionTools';

@@ -11,3 +11,3 @@ import { createOpenAiExecutionTools } from '../llm-providers/openai/createOpenAiExecutionTools';

import { _OpenAiAssistantRegistration } from '../llm-providers/openai/register-constructor';
export { PROMPTBOOK_VERSION };
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
export { createOpenAiAssistantExecutionTools };

@@ -14,0 +14,0 @@ export { createOpenAiExecutionTools };

@@ -1,8 +0,8 @@

import { PROMPTBOOK_VERSION } from '../version';
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
import { createPdfScraper } from '../scrapers/pdf/createPdfScraper';
import { PdfScraper } from '../scrapers/pdf/PdfScraper';
import { _PdfScraperRegistration } from '../scrapers/pdf/register-constructor';
export { PROMPTBOOK_VERSION };
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
export { createPdfScraper };
export { PdfScraper };
export { _PdfScraperRegistration };

@@ -1,8 +0,8 @@

import { PROMPTBOOK_VERSION } from '../version';
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
import type { RemoteLlmExecutionToolsOptions } from '../llm-providers/remote/interfaces/RemoteLlmExecutionToolsOptions';
import type { RemoteServerOptions } from '../llm-providers/remote/interfaces/RemoteServerOptions';
import { RemoteLlmExecutionTools } from '../llm-providers/remote/RemoteLlmExecutionTools';
export { PROMPTBOOK_VERSION };
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
export type { RemoteLlmExecutionToolsOptions };
export type { RemoteServerOptions };
export { RemoteLlmExecutionTools };

@@ -1,6 +0,6 @@

import { PROMPTBOOK_VERSION } from '../version';
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
import type { RemoteServerOptions } from '../llm-providers/remote/interfaces/RemoteServerOptions';
import { startRemoteServer } from '../llm-providers/remote/startRemoteServer';
export { PROMPTBOOK_VERSION };
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
export type { RemoteServerOptions };
export { startRemoteServer };

@@ -1,2 +0,2 @@

import { PROMPTBOOK_VERSION } from '../version';
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
import { renderPromptbookMermaid } from '../conversion/prettify/renderPipelineMermaidOptions';

@@ -72,3 +72,3 @@ import { extractParameterNamesFromTemplate } from '../conversion/utils/extractParameterNamesFromTemplate';

import { isValidUuid } from '../utils/validators/uuid/isValidUuid';
export { PROMPTBOOK_VERSION };
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
export { renderPromptbookMermaid };

@@ -75,0 +75,0 @@ export { extractParameterNamesFromTemplate };

@@ -1,8 +0,8 @@

import { PROMPTBOOK_VERSION } from '../version';
import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
import { createWebsiteScraper } from '../scrapers/website/createWebsiteScraper';
import { _WebsiteScraperRegistration } from '../scrapers/website/register-constructor';
import { WebsiteScraper } from '../scrapers/website/WebsiteScraper';
export { PROMPTBOOK_VERSION };
export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
export { createWebsiteScraper };
export { _WebsiteScraperRegistration };
export { WebsiteScraper };

@@ -10,3 +10,2 @@ import type { Command as Program } from 'commander';

* TODO: [🥃][main] !!! Allow `ptbk make` without configuring any llm tools
* TODO: Maybe remove this command - "about" command should be enough?
* TODO: [0] DRY Javascript and typescript - Maybe make ONLY typescript and for javascript just remove types

@@ -13,0 +12,0 @@ * Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`

@@ -8,2 +8,3 @@ /**

/**
* TODO: [🧠] Maybe `run` command the default, instead of `ptbk run ./foo.ptbk.md` -> `ptbk ./foo.ptbk.md`
* TODO: [🥠] Do not export, its just for CLI script

@@ -10,0 +11,0 @@ * TODO: [🕌] When more functionalities, rename

#!/usr/bin/env node
export {};
/**
* Note: Purpose of this file !!!!!!! vs other place
*/
import '../../_packages/cli.index.ts';

@@ -172,3 +172,3 @@ import type { WritableDeep } from 'type-fest';

*
* @example 'PROMPTBOOK_VERSION_0_62_0'
* @example 'PROMPTBOOK_ENGINE_VERSION_0_62_0'
* @example 'FOREACH_LIST_LINE_CUSTOMERS_CUSTOMER'

@@ -175,0 +175,0 @@ */

@@ -6,2 +6,2 @@ /**

*/
export declare const COMMANDS: readonly [import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./TEMPLATE/TemplateCommand").TemplateCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./EXPECT/ExpectCommand").ExpectCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./FORMAT/FormatCommand").FormatCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./JOKER/JokerCommand").JokerCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./MODEL/ModelCommand").ModelCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./PARAMETER/ParameterCommand").ParameterCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./POSTPROCESS/PostprocessCommand").PostprocessCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./PROMPTBOOK_VERSION/PromptbookVersionCommand").PromptbookVersionCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./URL/UrlCommand").UrlCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./KNOWLEDGE/KnowledgeCommand").KnowledgeCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./X_ACTION/ActionCommand").ActionCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./X_INSTRUMENT/InstrumentCommand").InstrumentCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./PERSONA/PersonaCommand").PersonaCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./FOREACH/ForeachCommand").ForeachCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./_BOILERPLATE/BoilerplateCommand").BoilerplateCommand>];
export declare const COMMANDS: readonly [import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./TEMPLATE/TemplateCommand").TemplateCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./EXPECT/ExpectCommand").ExpectCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./FORMAT/FormatCommand").FormatCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./JOKER/JokerCommand").JokerCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./MODEL/ModelCommand").ModelCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./PARAMETER/ParameterCommand").ParameterCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./POSTPROCESS/PostprocessCommand").PostprocessCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./BOOK_VERSION/BookVersionCommand").BookVersionCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./URL/UrlCommand").UrlCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./KNOWLEDGE/KnowledgeCommand").KnowledgeCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./X_ACTION/ActionCommand").ActionCommand>, import("./_common/types/CommandParser").PipelineHeadCommandParser<import("./X_INSTRUMENT/InstrumentCommand").InstrumentCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./PERSONA/PersonaCommand").PersonaCommand>, import("./_common/types/CommandParser").PipelineTemplateCommandParser<import("./FOREACH/ForeachCommand").ForeachCommand>, import("./_common/types/CommandParser").PipelineBothCommandParser<import("./_BOILERPLATE/BoilerplateCommand").BoilerplateCommand>];
import type { string_semantic_version } from './types/typeAliases';
/**
* The version of the Promptbook library
* The version of the Book language
*
* @see https://github.com/webgptorg/book
*/
export declare const PROMPTBOOK_VERSION: string_promptbook_version;
export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
/**
* The version of the Promptbook engine
*
* @see https://github.com/webgptorg/promptbook
*/
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
export type string_promptbook_version = string_semantic_version;
/**
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
*/
{
"name": "@promptbook/execute-javascript",
"version": "0.74.0-0",
"version": "0.74.0-2",
"description": "Supercharge your use of large language models",

@@ -56,3 +56,3 @@ "private": false,

"peerDependencies": {
"@promptbook/core": "0.74.0-0"
"@promptbook/core": "0.74.0-2"
},

@@ -59,0 +59,0 @@ "dependencies": {

@@ -78,16 +78,22 @@ <!-- ⚠️ WARNING: This code has been generated so that any manual changes will be overwritten -->

## 💜 The Promptbook Project
Promptbook project is ecosystem of multiple projects and tools, following is a list of most important pieces of the project:
<table>
<tbody>
<thead>
<tr>
<td>Promptbook whitepaper</td>
<td>Basic motivations and problems which we are trying to solve</td>
<td rowspan=3>https://github.com/webgptorg/book</td>
<th>Project</th>
<th>Description</th>
<th>Link</th>
</tr>
</thead>
<tbody>
<tr>
<td>Promptbook <i>(system)</i></td>
<td>Promptbook ...</td>
<td>Core</td>
<td>Promptbook core is a description and documentation of basic innerworkings how should be Promptbook implemented and defines which fetures must be descriable by book language</td>
<td rowspan=2>https://ptbk.io<br/>https://github.com/webgptorg/book</td>
</tr>

@@ -97,3 +103,3 @@ <tr>

<td>
Book is a markdown-like language to define projects, pipelines, knowledge,... in the Promptbook system. It is designed to be understandable by non-programmers and non-technical people
Book is a markdown-like language to define core entities like projects, pipelines, knowledge,.... It is designed to be understandable by non-programmers and non-technical people
</td>

@@ -104,12 +110,12 @@ </tr>

<td>Implementation of Promptbook in TypeScript published into multiple packages to NPM</td>
<td>https://github.com/webgptorg/promptbook</td>
<td>https://github.com/webgptorg/promptbook + Multiple packages on NPM</td>
</tr>
<tr>
<td>Promptbook studio</td>
<td>Promptbook studio</td>
<td rowspan=2>https://github.com/hejny/promptbook-studio</td>
<td>No-code studio to write book without need to write even the markdown</td>
<td rowspan=2>https://promptbook.studio<br/>https://github.com/hejny/promptbook-studio</td>
</tr>
<tr>
<td>Promptbook miniapps</td>
<td>Promptbook miniapps</td>
<td>Builder of LLM miniapps from book notation</td>
</tr>

@@ -119,2 +125,4 @@ </tbody>

## 💙 Book language _(for prompt-engineer)_

@@ -190,12 +198,63 @@

## 📚 Dictionary
### 📚 Dictionary
The following glossary is used to clarify certain concepts:
### Basic terms
#### General LLM / AI terms
- **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.
- **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.
- **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.
- **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.
- **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.
- **Meta-learning** is a machine learning paradigm where a model is trained on a variety of tasks and is able to learn new tasks with minimal additional training. This is achieved by learning a set of meta-parameters that can be quickly adapted to new tasks.
- **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.
- **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.
### Core concepts
_Note: Thos section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
#### Promptbook core
- **Organization** _(legacy name collection)_ group jobs, workforce, knowledge, instruments, and actions into one package. Entities in one organization can share resources (= import resources from each other).
- **Jobs**
- **Task**
- **Subtask**
- **Workforce**
- **Persona**
- **Team**
- **Role**
- **Knowledge**
- **Public**
- **Private**
- **Protected**
- **Instruments**
- **Actions**
#### Book language
- **Book file**
- **Section**
- **Heading**
- **Description**
- **Command**
- **Block**
- **Return statement**
- **Comment**
- **Import**
- **Scope**
#### 💯 Core concepts
- [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)

@@ -212,3 +271,3 @@ - [📯 Pipeline](https://github.com/webgptorg/promptbook/discussions/64)

### Advanced concepts
##### Advanced concepts

@@ -228,2 +287,11 @@ - [📚 Knowledge (Retrieval-augmented generation)](https://github.com/webgptorg/promptbook/discussions/41)

### Terms specific to Promptbook TypeScript implementation
- Anonymous mode
- Application mode
## 🔌 Usage in Typescript / Javascript

@@ -230,0 +298,0 @@

@@ -14,6 +14,16 @@ (function (global, factory) {

/**
* The version of the Promptbook library
* The version of the Book language
*
* @see https://github.com/webgptorg/book
*/
var PROMPTBOOK_VERSION = '0.73.0';
// TODO: [main] !!!! List here all the versions and annotate + put into script
var BOOK_LANGUAGE_VERSION = '1.0.0';
/**
* The version of the Promptbook engine
*
* @see https://github.com/webgptorg/promptbook
*/
var PROMPTBOOK_ENGINE_VERSION = '0.74.0-1';
/**
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
*/

@@ -1288,6 +1298,7 @@ /*! *****************************************************************************

exports.BOOK_LANGUAGE_VERSION = BOOK_LANGUAGE_VERSION;
exports.JavascriptEvalExecutionTools = JavascriptEvalExecutionTools;
exports.JavascriptExecutionTools = JavascriptExecutionTools;
exports.POSTPROCESSING_FUNCTIONS = POSTPROCESSING_FUNCTIONS;
exports.PROMPTBOOK_VERSION = PROMPTBOOK_VERSION;
exports.PROMPTBOOK_ENGINE_VERSION = PROMPTBOOK_ENGINE_VERSION;

@@ -1294,0 +1305,0 @@ Object.defineProperty(exports, '__esModule', { value: true });

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc