Pinecone Query
Overview
You can use the Pinecone Query Snap to query records in the Pinecone vector database. Use the Pinecone Snap in an RAG-based LLM (Large Language Model) pipeline where the input vector comes from a user's query. The metadata for matching vectors can be sent to the LLM model for further processing to generate answers to the query.
- If the authentication to Pinecone fails, it results in a complete failure of the Snap (no documents are processed). This is because it cannot get the information to create the URL to contact the Pinecone endpoint.
- If the authentication issue is specific to the Index, such as the non-existing Index for the Account, then the Snap routes to the error view.

- This is a Read-type Snap.
Works in Ultra Tasks
Prerequisites
- A valid account with the required permissions.
Limitations and known issues
None.
Snap views
| Type | Description | Examples of upstream and downstream Snaps |
|---|---|---|
| Input | This Snap has at the most one document input view. The input vector must have the same dimension as the connected database for distance calculation to work. | Mapper |
| Output | This Snap has at the most one document output view. The Snap retrieves the top matching vectors close to a specific vector in the Pinecone database and outputs the corresponding metadata for those matching vectors (if required). | Mapper |
| Learn more about Error handling. | ||
Snap settings
- Expression icon (
): Allows using JavaScript syntax to access SnapLogic Expressions to set field values dynamically (if enabled). If disabled, you can provide a static value. Learn more.
- SnapGPT (
): Generates SnapLogic Expressions based on natural language using SnapGPT. Learn more.
- Suggestion icon (
): Populates a list of values dynamically based on your Snap configuration. You can select only one attribute at a time using the icon. Type into the field if it supports a comma-separated list of values.
- Upload
: Uploads files. Learn more.
| Field/Field set | Type | Description |
|---|---|---|
| Label | String |
Required. Specify a unique name for the Snap. Modify this to be more appropriate, especially if more than one of the same Snaps is in the pipeline. Default value: Pinecone Query Example: TextSimilarityDocument |
| Index name | String/Expression/ Suggestion |
Required. Specify the name of the index to query the records from. Default value: N/A Example: document_embeddings |
| Namespace | String/Expression/ Suggestion |
Specify the namespace to query records from in the specified index. If left blank or null, the default namespace is used. Default value: N/A Example: document_embeddings |
| Top K | String/Expression |
Required. Specify the number of matches to return per query result. Default value: 4 Example: 5 |
| Include vector values | Checkbox/Expression |
Select this checkbox to include the vectors in the response.
Note:
This field does not support input values from the upstream Snap.
Default status: Deselected |
| Include metadata | Checkbox/Expression |
Select this checkbox to include the metadata in the response.
Note:
This field does not support input values from the upstream Snap.
Default status: Selected |
| Snap execution | Dropdown list |
Choose one of the three modes in
which the Snap executes. Available options are:
Default value: Validate & Execute Example: Execute only |