younifyd
Menu

Generate vectors

Generate vectors

POST/embed

Use it in a workflow

  1. Add a step and choose the Pinecone connector.
  2. Pick the Generate vectors action (under Inference).
  3. Fill in the fields below, then reference the result from later steps as {{generateVectors.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

modelstringrequired

The [model](https://docs.pinecone.io/guides/index-data/create-an-index#embedding-models) to use for embedding generation.

parametersobject

Additional model-specific parameters. Refer to the [model guide](https://docs.pinecone.io/guides/index-data/create-an-index#embedding-models) for available model parameters.

inputsarray<object>required

List of inputs to generate embeddings for.

textstring

The text input to generate embeddings for.

json
{
  "model": "multilingual-e5-large",
  "inputs": [
    {
      "text": "The quick brown fox jumps over the lazy dog."
    }
  ],
  "parameters": {
    "input_type": "passage",
    "truncate": "END"
  }
}

Response

Returns 200 with an object. Read it in later steps with {{generateVectors.response.data.<field>}}.

modelstring

The model used to generate the embeddings

vector_typestring

Indicates whether the response data contains 'dense' or 'sparse' embeddings.

dataarray<object>

The embeddings generated for the inputs.

usageobject

Usage statistics for the model inference.

total_tokensinteger (int32)

Total number of tokens consumed across all inputs.

json
{
  "model": "multilingual-e5-large",
  "vector_type": "dense",
  "data": [
    {}
  ],
  "usage": {
    "total_tokens": 205
  }
}

Need more? See the Pinecone guide for connection setup and behaviour shared by every action.