> 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/elastic.md).

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