# Azure OpenAI Embeddings

## Prerequisito

1. [Inicia sesión](https://portal.azure.com/) o [regístrate](https://azure.microsoft.com/en-us/free/) en Azure
2. [Crea](https://portal.azure.com/#create/Microsoft.CognitiveServicesOpenAI) tu Azure OpenAI y espera la aprobación aproximadamente 10 días hábiles
3. Tu API key estará disponible en **Azure OpenAI** > haz clic en **name\_azure\_openai** > haz clic en **Click here to manage keys**

<figure><img src="https://4068692976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUiD7nOmFRK805sNuiieJ%2Fuploads%2Fgit-blob-72057c9d27157f7a6505d2e485b8ebfcce94d92f%2F1.png?alt=media" alt=""><figcaption></figcaption></figure>

## Configuración

### Azure OpenAI Embeddings

1. Haz clic en **Go to Azure OpenaAI Studio**

<figure><img src="https://4068692976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUiD7nOmFRK805sNuiieJ%2Fuploads%2Fgit-blob-7b13de5666fb6760c85f7fc9bf0ba301b7233c25%2F2.png?alt=media" alt=""><figcaption></figcaption></figure>

2. Haz clic en **Deployments**

<figure><img src="https://4068692976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUiD7nOmFRK805sNuiieJ%2Fuploads%2Fgit-blob-ca86df36af6c3b809b33f4b31f1cc295ff054d3f%2F3.png?alt=media" alt=""><figcaption></figcaption></figure>

3. Haz clic en **Create new deployment**

<figure><img src="https://4068692976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUiD7nOmFRK805sNuiieJ%2Fuploads%2Fgit-blob-1ab63c852f1ab95a2b6b3bc281180ad83537a6c2%2F4.png?alt=media" alt=""><figcaption></figcaption></figure>

4. Selecciona como se muestra a continuación y haz clic en **Create**

<figure><img src="https://4068692976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUiD7nOmFRK805sNuiieJ%2Fuploads%2Fgit-blob-e2cba6abaf7c44a578600333bb206a02ee33bb4a%2F1.png?alt=media" alt="" width="559"><figcaption></figcaption></figure>

5. Azure OpenAI Embeddings creado exitosamente

* Deployment name: `text-embedding-ada-002`
* Instance name: `esquina superior derecha`

<figure><img src="https://4068692976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUiD7nOmFRK805sNuiieJ%2Fuploads%2Fgit-blob-146bef6f93561b19b6f5e86096d7cf711bb05660%2F2.png?alt=media" alt=""><figcaption></figcaption></figure>

### Flowise

1. **Embeddings** > arrastra el nodo **Azure OpenAI Embeddings**

<figure><img src="https://4068692976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUiD7nOmFRK805sNuiieJ%2Fuploads%2Fgit-blob-bfca03d6f337b1cfa0d081adcad2adf8d6c0e5d9%2F3.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

2. **Connect Credential** > haz clic en **Create New**

<figure><img src="https://4068692976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUiD7nOmFRK805sNuiieJ%2Fuploads%2Fgit-blob-39f7eaa4abd5eb0b412c546e04b3baa34da0052c%2F4.png?alt=media" alt="" width="386"><figcaption></figcaption></figure>

3. Copia y pega cada detalle (API Key, Instance y Deployment name, [API Version](https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#chat-completions)) en la credencial de **Azure OpenAI Embeddings**

<figure><img src="https://4068692976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUiD7nOmFRK805sNuiieJ%2Fuploads%2Fgit-blob-a6a0b63013f215f8d3d6d99009569600ac485e4a%2F5.png?alt=media" alt="" width="554"><figcaption></figcaption></figure>

4. ¡Voilà [🎉](https://emojipedia.org/party-popper/), has creado el **nodo Azure OpenAI Embeddings** en Flowise

<figure><img src="https://4068692976-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUiD7nOmFRK805sNuiieJ%2Fuploads%2Fgit-blob-ba561ad06c30c3d52d997de67a3e9c15b444c02c%2F5.png?alt=media" alt=""><figcaption></figcaption></figure>

## Recursos

* [LangChain JS Azure OpenAI Embeddings](https://js.langchain.com/docs/modules/data_connection/text_embedding/integrations/azure_openai)
* [Referencia de la API REST de Azure OpenAI Service](https://learn.microsoft.com/en-us/azure/ai-services/openai/reference)


---

# 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://docs.flowiseai.com/espanol/documentacion-oficial/integraciones/langchain/embeddings/azure-openai-embeddings.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.
