1.7.0 • Published 6 months ago

prompter-cli v1.7.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

Prompter CLI

Prompter CLI is a command line tool for managing prompts, bots, and embeddings.

Install

npm install -g prompter-cli

Usage

Verify the installation by running prompter --version in your terminal.

prompter --version

Login

Login to your Prompter account by running prompter login in your terminal.

prompter login

Publish a prompt

Publish a prompt by running prompter --prompt=<prompt> --publish in your terminal. Note that the prompt must be a valid Handlebars template. See Handlebars for more information. If no promptId is provided, the file name will be used as the promptId. If the prompt is already published, it will be updated.

 prompter --prompt=demo.hbr --publish

Publish using a different promptId:

   prompter --prompt=demo.hbr --id=demo --publish

Uploading Plain Text Embeddings

Create a text file with extension .txt then follow the instructions below. Embeddings can be uploaded by running prompter --embed=<file> --collection=<collection-name> in your terminal. Embeddings must be a text file, it supports Mark Down and Json.

you can specifiy chunkSize by running prompter --embed=<file> --collection=<collection-name> --chunkSize=<chunkSize> in your terminal. The default chunkSize is 1000.

Uploading Markdown Embeddings

Create a text file with extension .md then follow the instructions below. Embeddings can be uploaded by running prompter --embed=<file> --collection=<collection-name> in your terminal. Embeddings must be a text file with extension .md. Prompter will detect the file extension and upload the embeddings as markdown.

Additional parameters can be specified by running prompter --embed=<file> --splitTables=true in your terminal. In Markdown, tables are represented as text. Prompter will detect tables and split them into separate chunks keeping a copy of the header in each chunk. This is useful for creating a table of contents.

In markdown, the chunk split criteria is praragraphs, each paragraph will be a separate chunk, keeping a breadcrumb of the parent headlines on each chunk.

Querying Embeddings

Execute prompter then select Embeddings from menu.

1.7.0

6 months ago

1.6.3

9 months ago

1.6.2

9 months ago

1.6.1

9 months ago

1.6.0

9 months ago

1.5.2

9 months ago

1.5.1

9 months ago

1.5.0

9 months ago

1.4.3

10 months ago

1.4.2

10 months ago

1.4.1

10 months ago

1.4.0

10 months ago

1.3.1

10 months ago

1.3.0

10 months ago

1.2.6

10 months ago

1.2.5

10 months ago

1.2.4

10 months ago

1.2.3

10 months ago

1.2.2

10 months ago

1.1.2

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago