# Elastic

## Tailwinds Setup

1. Add a new **Elasticsearch** node on canvas and fill in the **Index Name**

<figure><img src="/files/4XAaogIAIQbkgbg6hqQu" alt="" width="275"><figcaption></figcaption></figure>

2. Add new credential via **Elasticsearch API**

<figure><img src="/files/8usgerBNAQV1jctD0U4m" alt="" width="429"><figcaption></figcaption></figure>

3. Take the URL and API Key from Elasticsearch, fill in the fields

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

4. After credential has been created successfully, you can start upserting the data

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

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

5. After data has been upserted successfully, you can verify it from Elastic dashboard:

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

6. Voila! You can now start asking question in the chat

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

## Resources

* [LangChain JS Elastic](https://js.langchain.com/docs/integrations/vectorstores/elasticsearch)
* [Vector Search (kNN) Implementation Guide - API Edition](https://www.elastic.co/search-labs/blog/articles/vector-search-implementation-guide-api-edition)


---

# 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/elastic.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.
