[!NOTICE] The PaLM API is now deprecated. See https://ai.google.dev/palm_docs for more.
A Breadboard Kit with nodes to access PaLM APIs.
This kit contains the following nodes:
This is a PaLM API text completion node. To produce useful output, the node needs a PALM_KEY
input and the text
input.
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."
}
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.
completion
- result of the PaLM API text completion.
This is a PaLM API text embedding node. Just like the generateText
node, it needs a PALM_KEY
input and the text
input.
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, ... ]
}
-
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.
embedding
- result of the PaLM API text embedding, a 768-dimensional array of floating-point numbers.