> For the complete documentation index, see [llms.txt](https://docs.flowiseai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flowiseai.com/espanol/documentacion-oficial/integraciones/langchain/vector-stores/qdrant.md).

# Qdrant

## Prerequisitos

Una [instancia local de Qdrant](https://qdrant.tech/documentation/quick-start/) o una instancia de Qdrant cloud.

Para obtener una instancia de Qdrant cloud:

1. Dirígete a la sección Clusters del [Cloud Dashboard](https://cloud.qdrant.io/overview).
2. Selecciona **Clusters** y luego haz clic en **+ Create**.

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

3. Elige las configuraciones de tu cluster y la región.
4. Presiona **Create** para aprovisionar tu cluster.

## Configuración

1. Obtén/Crea tu **API Key** desde la sección **Data Access Control** del [Cloud Dashboard](https://cloud.qdrant.io/overview).
2. Añade un nuevo nodo **Qdrant** en el canvas.
3. Crea una nueva credencial de Qdrant usando el API Key

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

4. Ingresa la información requerida en el nodo **Qdrant**:
   * URL del servidor Qdrant
   * Nombre de la colección

<figure><img src="/files/wT5kAtGTtVcUPhhbUAJu" alt="" width="239"><figcaption></figcaption></figure>

5. La entrada **Document** puede conectarse con cualquier nodo de la categoría [**Document Loader**](/espanol/documentacion-oficial/integraciones/langchain/document-loaders.md).
6. La entrada **Embeddings** puede conectarse con cualquier nodo de la categoría [**Embeddings**](/espanol/documentacion-oficial/integraciones/langchain/embeddings.md).

## Filtrado

Supongamos que tienes diferentes documentos insertados, cada uno especificado con un valor único bajo la clave de metadata `{source}`

<div align="left"><figure><img src="/files/soLLxTyToFNyANUgPXm8" alt="" width="563"><figcaption></figcaption></figure> <figure><img src="/files/dCXqpqKKyKzoFCqETPQG" alt="" width="563"><figcaption></figcaption></figure></div>

Entonces, quieres filtrar por este valor. Qdrant soporta la siguiente [sintaxis](https://qdrant.tech/documentation/concepts/filtering/#nested-key) cuando se trata de filtrado:

**UI**

<figure><img src="/files/xsE4SgC4vrfCe0HyvkHu" alt="" width="338"><figcaption></figcaption></figure>

**API**

```json
"overrideConfig": {
    "qdrantFilter": {
        "should": [
            {
                "key": "metadata.source",
                "match": {
                    "value": "apple"
                }
            }
        ]
    }
}
```

## Recursos

* [Documentación de Qdrant](https://qdrant.tech/documentation/)
* [LangChain JS Qdrant](https://js.langchain.com/docs/integrations/vectorstores/qdrant)
* [Filtros de Qdrant](https://qdrant.tech/documentation/concepts/filtering/#nested-key)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.flowiseai.com/espanol/documentacion-oficial/integraciones/langchain/vector-stores/qdrant.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
