> For the complete documentation index, see [llms.txt](https://tailwindsdocs.innovativesol.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tailwindsdocs.innovativesol.com/readme/chatflows/langchain/vector-stores/astradb.md).

# AstraDB

## Setup

1. Register an account on [AstraDB](https://astra.datastax.com/)
2. Login to portal. Create a Database

<figure><img src="/files/3b7ikR3bl7SGD9R4tWtw" alt=""><figcaption></figcaption></figure>

3. Choose Serverless (Vector), fill in the Database name, Provider, and Region

<figure><img src="/files/xD3wMqDLFTLwznLp4Wt8" alt="" width="563"><figcaption></figcaption></figure>

4. After database has been setup, grab the API Endpoint, and generate Application Token

<figure><img src="/files/8nEjHceOknFA6yD2PdRJ" alt=""><figcaption></figcaption></figure>

5. Create a new collection, select the desired dimenstion and similarity metric:

<figure><img src="/files/uIiFtHAVCoRKgCDhPZVa" alt=""><figcaption></figcaption></figure>

6. Back to your canvas, drag and drop Astra node. Click **Create New** from the Credentials dropdown:

<figure><img src="/files/kteReXi8O3KEEh5L8BYU" alt="" width="235"><figcaption></figcaption></figure>

7. Specify the API Endpoint and Application Token:

<figure><img src="/files/BwjLgXLkJw53u6d6HflL" alt="" width="563"><figcaption></figcaption></figure>

8. You can now upsert data to AstraDB

<figure><img src="/files/TjCOa6OJUWw4l6RYoSQ4" alt=""><figcaption></figcaption></figure>

9. Navigate back to Astra portal, and to your collection, you will be able to see all the data that has been upserted:

<figure><img src="/files/wEcpdfJz2LWuhsndb29u" alt=""><figcaption></figcaption></figure>

10. Start querying!

<figure><img src="/files/0YGHzrHBVf0I4pdqwg74" alt=""><figcaption></figcaption></figure>
