Azure
Bundles 包含支援與 AgentBuilder 特定第 三方整合的自訂Components。
此頁面描述 Azure bundle 中可用的Components。
Azure OpenAI
此Components使用 Azure OpenAI LLMs 生成文字。
它可以輸出 Model Response (Message) 或 Language Model (LanguageModel)。
具體來說,Language Model 輸出是根據Components參數設定的 AzureChatOpenAI 實例。
當您想要將 Azure OpenAI 模型用作另一個 LLM 驅動Components的 LLM 時,請使用 Language Model 輸出,例如 Agent 或 Smart Function Components。
如需詳細資訊,請參閱語言模型Components。
Azure OpenAI 參數
某些參數在視覺編輯器中預設為隱藏。 您可以透過 Components的標頭選單 中的 Controls 修改所有參數。
| Name | Type | Description |
|---|---|---|
| Model Name | String | 輸入參數。指定用於文字生成的 Azure OpenAI 模型名稱。 |
| Azure Endpoint | String | 輸入參數。您的 Azure 端點,包括資源。 |
| Deployment Name | String | 輸入參數。指定部署名稱。 |
| API Version | String | 輸入參數。指定要使用的 Azure OpenAI API 版本。 |
| API Key | SecretString | 輸入參數。您的 Azure OpenAI API 金鑰。 |
| Temperature | Float | 輸入參數。指定取樣溫度。預設為 0.7。 |
| Max Tokens | Integer | 輸入參數。指定要生成的最大權杖數。預設為 1000。 |
| Input Value | String | 輸入參數。指定文字生成的輸入文字。 |
| Stream | Boolean | 輸入參數。指定是否從模型串流回應。預設為 false。 |
Azure OpenAI Embeddings
Azure OpenAI Embeddings Components使用 Azure OpenAI 模型生成嵌入。
有關在 Flow中使用嵌入模型Components的詳細資訊,請參閱嵌入模型Components。
Azure OpenAI Embeddings 參數
某些參數在視覺編輯器中預設為隱藏。 您可以透過 Components的標頭選單 中的 Controls 修改所有參數。
| Name | Type | Description |
|---|---|---|
| Model | String | 輸入參數。要使用的模型名稱。預設值:text-embedding-3-small。 |
| Azure Endpoint | String | 輸入參數。您的 Azure 端點,包括資源,例如 https://example-resource.azure.openai.com/。 |
| Deployment Name | String | 輸入參數。部署名稱。 |
| API Version | String | 輸入參數。要使用的 API 版本,選項包括各種日期。 |
| API Key | String | 輸入參數。存取 Azure OpenAI 服務所需的 API 金鑰。 |