0.1.6 • Published 8 months ago

@google-labs/palm-kit v0.1.6

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

Breadboard PaLM Kit

!NOTICE The PaLM API is now deprecated. See https://ai.google.dev/palm_docs for more.

Stability Discord

A Breadboard Kit with nodes to access PaLM APIs.

Node Reference

This kit contains the following nodes:

The generateText node

This is a PaLM API text completion node. To produce useful output, the node needs a PALM_KEY input and the text input.

Example:

Given this input:

{
  "PALM_KEY": "<your API key>",
  "text": "How old is planet Earth?"
}

The node will produce this output:

{
  "completion": "It is about 4.5 billion years old."
}

Inputs:

  • PALM_KEY required, must contain the Google Cloud Platform API key for the project has the "Generative Language API" API enabled.
  • text required, sent as the prompt for the completion.
  • stopSequences optional array of strings. These will be passed as the stop sequences to the completion API.

Outputs:

  • completion - result of the PaLM API text completion.

The embedText node

This is a PaLM API text embedding node. Just like the generateText node, it needs a PALM_KEY input and the text input.

Example:

Given this input:

{
  "PALM_KEY": "<your API key>",
  "text": "How old is planet Earth?"
}

The node will output a 768-dimensional embedding of the text:

{
  "embedding": [0.1, ... ]
}

Inputs:

  • PALM_KEY required, must contain the Google Cloud Platform API key for the project has the "Generative Language API" API enabled.

  • text required, text to embed.

Outputs:

  • embedding - result of the PaLM API text embedding, a 768-dimensional array of floating-point numbers.
0.1.6

8 months ago

0.1.4

9 months ago

0.1.5

8 months ago

0.1.3

10 months ago

0.1.0

11 months ago

0.1.2

10 months ago

0.1.1

11 months ago

0.0.15

12 months ago

0.0.16

11 months ago

0.0.14

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

2 years ago