# Pinecone

## Prerequisite

1. Register an account for [Pinecone](https://app.pinecone.io/)
2. Click **Create index**

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2Fgit-blob-efd45d48879787ffa365399427e7f4bd80a1b8f1%2Fpinecone_1.png?alt=media" alt=""><figcaption></figcaption></figure>

3. Fill in required fields:
   * **Index Name**, name of the index to be created. (e.g. "test")
   * **Dimensions**, size of the vectors to be inserted in the index. (e.g. 1536)

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2Fgit-blob-1cdfa258ab5e8c3673e1cc412d6a72d651a52de3%2Fpinecone_2.png?alt=media" alt="" width="527"><figcaption></figcaption></figure>

4. Click **Create Index**

## Setup

1. Get/Create your **API Key**

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2Fgit-blob-495497d36ea67054b4a8f588da969672d460b90a%2Fpinecone_3.png?alt=media" alt=""><figcaption></figcaption></figure>

2. Add a new **Pinecone** node to canvas and fill in the parameters:
   * Pinecone Index
   * Pinecone namespace (optional)

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2Fgit-blob-32977e96424953ac8eb169b1917f4e352204da19%2Fpinecone_llamaindex.png?alt=media" alt="" width="301"><figcaption><p>Pinecone Node</p></figcaption></figure>

3. Create new Pinecone credential -> Fill in **API Key**

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2Fgit-blob-798beb4ecbbb2ebfdff283a116fd8b1692270053%2Fpinecone_5.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

4. Add additional nodes to canvas and start the upsert process
   * **Document** can be connected with any node under [**Document Loader**](https://tailwindsdocs.innovativesol.com/readme/chatflows/langchain/document-loaders) category

     <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Document loaders and text splitters for LlamaIndex are not yet available, but using one of the ones available under LangChain will still allow querying with LlamaIndex as normal.</p></div>

\- \*\*Embeddings\*\* can be connected with any node under \[\*\*Embeddings\*\* ]\(../embeddings/)category

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2Fgit-blob-563f65652bcc8dae6ab5155f0085d80ec21f6b66%2Fpinecone_llama_chatflow.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2Fgit-blob-7b8e30fcb7ee6b36a4a8e0f908dbae8629340d1e%2Fpinecone_llama_upsert.png?alt=media" alt=""><figcaption></figcaption></figure>

5. Verify on [Pinecone dashboard](https://app.pinecone.io) that data has been successfully upserted:

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2Fgit-blob-d8bf1bc002eb69e9a08ebc08f763a218cd35249a%2Fpinecone_8.png?alt=media" alt=""><figcaption></figcaption></figure>
