Mandala
Tools

Pinecone

Use Pinecone vector database

Usage Instructions

Integrate Pinecone into the workflow. Can generate embeddings, upsert text, search with text, fetch vectors, and search with vectors.

Tools

pinecone_generate_embeddings

Generate embeddings from text using Pinecone's hosted models

Input

ParameterTypeRequiredDescription
modelstringYesModel to use for generating embeddings
inputsarrayYesArray of text inputs to generate embeddings for
apiKeystringYesPinecone API key

Output

ParameterTypeDescription
dataarrayGenerated embeddings data with values and vector type
modelstringModel used for generating embeddings
vector_typestringType of vector generated (dense/sparse)
usageobjectUsage statistics for embeddings generation

pinecone_upsert_text

Insert or update text records in a Pinecone index

Input

ParameterTypeRequiredDescription
indexHoststringYesFull Pinecone index host URL
namespacestringYesNamespace to upsert records into
recordsarrayYesRecord or array of records to upsert, each containing _id, text, and optional metadata
apiKeystringYesPinecone API key

Output

ParameterTypeDescription
statusTextstringStatus of the upsert operation
upsertedCountnumberNumber of records successfully upserted

pinecone_search_text

Search for similar text in a Pinecone index

Input

ParameterTypeRequiredDescription
indexHoststringYesFull Pinecone index host URL
namespacestringNoNamespace to search in
searchQuerystringYesText to search for
topKstringNoNumber of results to return
fieldsarrayNoFields to return in the results
filterobjectNoFilter to apply to the search
rerankobjectNoReranking parameters
apiKeystringYesPinecone API key

Output

ParameterTypeDescription
matchesarraySearch results with ID, score, and metadata
usageobjectUsage statistics including tokens, read units, and rerank units

pinecone_search_vector

Search for similar vectors in a Pinecone index

Input

ParameterTypeRequiredDescription
indexHoststringYesFull Pinecone index host URL
namespacestringNoNamespace to search in
vectorarrayYesVector to search for
topKnumberNoNumber of results to return
filterobjectNoFilter to apply to the search
includeValuesbooleanNoInclude vector values in response
includeMetadatabooleanNoInclude metadata in response
apiKeystringYesPinecone API key

Output

ParameterTypeDescription
matchesarrayVector search results with ID, score, values, and metadata
namespacestringNamespace where the search was performed

pinecone_fetch

Fetch vectors by ID from a Pinecone index

Input

ParameterTypeRequiredDescription
indexHoststringYesFull Pinecone index host URL
idsarrayYesArray of vector IDs to fetch
namespacestringNoNamespace to fetch vectors from
apiKeystringYesPinecone API key

Output

ParameterTypeDescription
matchesarrayFetched vectors with ID, values, metadata, and score
dataarrayVector data with values and vector type
usageobjectUsage statistics including total read units

Notes

  • Category: tools
  • Type: pinecone
Pinecone