Documentation Index
Fetch the complete documentation index at: https://docs.unstructured.io/llms.txt
Use this file to discover all available pages before exploring further.
First time creating a connector? Read this first.
Requirements
You will need:- A Pinecone account. Get an account.
-
A Pinecone API key in your Pinecone account. To create an API key, do the following:
- Sign in to your Pinecone account and open the API keys page.
- Click + API key.
- For API key name, enter some descriptive name for the API key.
- Click Create key.
- Copy the generated API key to some secure location. You will not be able to access this API key again after you close the dialog.
-
A Pinecone serverless index in your Pinecone account.
Creating a serverless index on your own is optional.
An index is not required to exist in advance.
When you set up the connector, at runtime, the index behavior is as follows:
For the Unstructured Pipelines and Unstructured API:
- Your workflow must contain an embedder node, and the embedder node must specify the embedding model that Unstructured will use to generate the embeedings.
- If an existing index name is specified, and the number of dimensions that Unstructured generates does not match the number of dimensions that are specified in the existing index’s embedding settings, the run will fail. You must change the number of dimensions in your workflow’s embedder node or your existing index’s embedding settings to match, and try the run again.
- If an index name is not specified, Unstructured creates a new index in your Pinecone account. The
new index’s name will be
u<short-workflow-id>-<short-embedding-model-name>-<number-of-dimensions>.
- If an existing index name is specified, and Unstructured generates embeddings, but the number of dimensions that are generated does not match the existing index’s embedding settings, the run will fail. You must change your Unstructured embedding settings or your existing index’s embedding settings to match, and try the run again.
- If an index name is not specified, Unstructured creates a new index in your Pinecone account. The new index’s name will be
unstructuredautocreated.
To create a serverless index on your own, do the following:If you create a new index or use an existing one, Unstructured recommends that all records in the target index have a field namedrecord_idwith a string data type. Unstructured can use this field to do intelligent document overwrites. Without this field, duplicate documents might be written to the index or, in some cases, the operation could fail altogether.- Sign in to your Pinecone account and open the Create a new index page.
- For Enter index name, enter some descriptive name for the index.
- For Configuration, select the check box labelled Custom settings, or click the tile labelled Manual configuration.
- For Vector type, select Dense.
- For Dimension, enter the number of dimensions for the embeddings that Unstructured will generate.
- For Metric, select cosine.
- Leave Capacity mode set to Serverless.
- You can leave Cloud provider and Region set to their default values, or you can select a cloud provider and region that is closest to you, if available.
- Click Create index.
- Within a Pinecone serverless index, custom namespaces are supported but are not required.
Examples
To create a Pinecone destination connector, see the following examples. For more information on working with destination connectors using the Unstructured API, see Destination endpoints.Configuration settings
Replace the preceding placeholders as follows:A unique name for this connector.
The name of the index in the Pinecone database. If no value is provided, see the beginning of this article for the behavior at run time.
The name of any custom namespace in the Pinecone index to upsert data into.
The Pinecone API key.
The maximum number of records to transmit in a single batch.

