# 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>


---

# 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://tailwindsdocs.innovativesol.com/readme/chatflows/langchain/vector-stores/astradb.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.
