# Pinecone

## Prerequisite

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

<figure><img src="https://823733684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F00tYLwhz5RyR7fJEhrWy%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. "flowise-test")
   * **Dimensions**, size of the vectors to be inserted in the index. (e.g. 1536)

<figure><img src="https://823733684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F00tYLwhz5RyR7fJEhrWy%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://823733684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F00tYLwhz5RyR7fJEhrWy%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://823733684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F00tYLwhz5RyR7fJEhrWy%2Fuploads%2Fgit-blob-6674e759ce3609a867695140de9134a1d0036bba%2Fpinecone_4.png?alt=media" alt="" width="279"><figcaption></figcaption></figure>

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

<figure><img src="https://823733684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F00tYLwhz5RyR7fJEhrWy%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://docs.flowiseai.com/integrations/langchain/document-loaders) category
   * **Embeddings** can be connected with any node under [**Embeddings** ](https://docs.flowiseai.com/integrations/langchain/embeddings)category

<figure><img src="https://823733684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F00tYLwhz5RyR7fJEhrWy%2Fuploads%2Fgit-blob-41accc7721ab49b1bcef414bbb4bc91932100b87%2Fpinecone_6.png?alt=media" alt=""><figcaption></figcaption></figure>

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

5. Verify from [Pinecone dashboard](https://app.pinecone.io) to see if data has been successfully upserted:

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

6.

## Resources

* LangChain Pinecone vectorstore integrations
  * [Python](https://python.langchain.com/v0.2/docs/integrations/providers/pinecone/)
  * [NodeJS](https://js.langchain.com/v0.2/docs/integrations/vectorstores/pinecone)
* [Pinecone LangChain integration](https://docs.pinecone.io/integrations/langchain)
* [Pinecone Flowise integration](https://docs.pinecone.io/integrations/flowise)
* [Pinecone official clients](https://docs.pinecone.io/reference/pinecone-clients)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flowiseai.com/integrations/langchain/vector-stores/pinecone.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
