Pinecone (Native)
Pinecone
Nexla's bi-directional connectors can both send data to and receive data from any data system. This means that once a user has created or gained access to a credential for any data system, building any data flow to ingest data from or send data to a location within that data system requires only a few simple steps.
For instructions pertaining to the Pinecone API connector, see the Pinecone API connector guide.
1. Credentials
This section provides step-by-step instructions for creating a new Pinecone (native) credential in Nexla.
Some actions are performed in the Pinecone console before creating the credential in the Nexla UI.
Generate Pinecone API Key
Pinecone requires an API key to authenticate with and make calls to the Pinecone API. This key will be stored within the Pinecone credential in Nexla and used to connect to your Pinecone project. Follow the steps below to generate a new API key in the Pinecone console:
-
Log into the Pinecone console, and select the project that will be accessed with Nexla.
-
Navigate to the API keys screen, and click the Create API key button.

- Enter a name for the API key, and click the Create API key button to generate key. Using a name that describes the purpose of the API key, such as
NexlaorNexla ProjectName, is recommended for record-keeping.

- Copy the newly generated API key for use when creating the Pinecone credential in Nexla.

Create the Pinecone Credential
After generating the Pinecone API key, log into your Nexla account, and follow the steps below to create a new Pinecone credential.
-
In the Integrate screen, click the New Data Flow button; then, select the FlexFlow data flow type, and click Create.
-
Select the Pinecone connector; then, in the Authenticate screen, click the Add Credential tile.

-
Enter a name for the credential in the Credential Name field, along with a brief, informative description in the Credential Description field.
-
Paste the API key generated in the previous section into the Pinecone API Key field.
-
Click the Save button to create the credential, and continue creating the data source (beginning with step # in the Data Source section below). The credential will also now appear in a tile on the Authenticate screen during data source/destination creation and can be used to create additional data sources and/or destinations for this Pinecone database.
2. Data Source
Data sources can easily be configured ingest data from any Pinecone database index accessible to a credential in the Nexla account. Pinecone data sources can be configured to perform a variety of query operations, each with additional settings available to further refine the data that will be ingested.
-
Navigate to the Integrate screen, and click the New Data Flow button. Then, select the FlexFlow data flow type, and click Create.
-
Select the Pinecone connector tile. Then, in the Authenticate screen, select the Pinecone credential that will be used to connect to the data source.
Pinecone CredentialsThe Authenticate screen displays all Pinecone credentials accessible to the user's account. Be sure to select the credential corresponding to the Pinecone project that will be accessed in this data flow.
To create a new Pinecone credential, follow the steps in the Credentials section above.
Configure the Data Source
-
Enter a name for the data source in the Name field, and provide a brief, informative description of the source in the Description field.
Resource DescriptionsResource descriptions should provide information about the resource purpose, data freshness, etc. that can help the owner and other users efficiently understand and utilize the resource.

- Specify the index within the Pinecone database that will be queried with this data source by entering the index name in the Index field.

- Enter the namespace within the Pinecone database that will be queried with this data source in the Namespace field. To create this data source without specifying a namespace, leave this field blank—in this case, queries will be performed within the default namespace.

-
Select the type of query operation that will be performed for this data source from the Query Type pulldown menu. Then, click the link for the selected query type in the list below, and follow the instructions to complete query setup.
- Fetch Similar Vectors – Retrieve vectors similar to a provided dense or sparse vector within the database
- Fetch Vectors – Retrieve all vectors or a subset of vectors from the database
- Fetch Vector IDs – Retrieve a set of vector IDs from the database

Fetch Similar Vectors

-
Enter the number of similar vectors that will be fetched for this data source in the Top K Similar Vectors field. Vectors will be ranked from most to least similar according to the configured data source settings, and the top K most similar vectors will be included in the resulting Nexset.
-
Optional: Similar vector query results can be further refined by filtering according to metadata parameters. To apply a filter to the query results, enter the filter as a JSON-formatted string in the Search Filter field.
For example, the filter
{ "vec_id":{ "$lte": 100 }}could be used to include only vectors with ID values less than or equal to 100 in the query results.Search FiltersFor more information about Pinecone metadata parameters and metadata querying language, see this Pinecone documentation.
-
Use the Search By Criteria pulldown menu to specify the type of similarity search that will be performed for this data source.
- Dense Vector – Perform the search according to dense vectors
- Vector ID – Perform the search according to vector IDs
▷ When Dense Vector is selected:

- In the Dense Vector field, enter the dense vector that will be used for the similarity search as a list of float values (e.g.,
0.1,0.2,0.5,0.4). - List the indices of non-zero values included in the sparse vector for use in the similarity search in the Sparse Vector Indices field.
- List the values corresponding to the indices included above in the Sparse Vector Values field.
▷ When Vector ID is selected:

- Enter the unique identifier of the vector that will be used for the similarity search in the Vector Identifier field.