# Upstash Vector

## Prequisites

1. Sign up or Sign In to [Upstash Console](https://console.upstash.com)
2. Navigate to Vector page and 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-db5d7d914705ab0b7f1af81db3557020f24513a6%2Flist-index.jpeg?alt=media" alt=""><figcaption></figcaption></figure>
3. Do the necessary configurations and create the index.

   1. **Index Name**, name of the index to be created. (e.g. "upstash-demo")
   2. **Dimensions**, size of the vectors to be inserted in the index. (e.g. 1536)
   3. **Embedding Model**, the model to be used in [Upstash Embeddings](https://upstash.com/docs/vector/features/embeddingmodels). This is optional. If you enable it, you don't need to provide embeddings model.

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

## Setup

1. Get your index credentials

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

1. Create new Upstash Vector credential and fill in
   1. Upstash Vector REST URL from UPSTASH\_VECTOR\_REST\_URL on console
   2. Upstash Vector Rest Token from UPSTASH\_VECTOR\_REST\_TOKEN on console

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

1. Add a new **Upstash Vector** node to canvas

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2Fgit-blob-3fa6df21f42033b8cf3fdc65c5a00ccaf1ed4c8d%2Fupstash-node.jpeg?alt=media" alt="" width="279"><figcaption></figcaption></figure>

1. 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
   * **Embeddings** can be connected with any node under [**Embeddings** ](https://tailwindsdocs.innovativesol.com/readme/chatflows/langchain/embeddings)category

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

1. Verify from [Upstash dashboard](https://console.upstash.com) to see if data has been successfully updated:

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