创建 LLM 连接
要将大型语言模型 (LLM) 与您的 GenAI 工具配合使用,您必须将 Alteryx One 连接到您选择的 LLM。操作如下...
创建连接后,您可以通过 LLM 覆盖和提示词工具在 Designer 中使用 LLM。如果您为其他用户创建了 LLM 连接,请从连接页面与他们共享连接。
重要
每个 LLM 连接都有不同的配置要求,涵盖 LLM 本身的设置以及 Alteryx One 中的配置设置。
有关详情,请查看以下特定于 LLM 的配置详情。
连接信息
连接名称:提供一个描述性的连接名称,用户以后使用此连接时将引用该名称。
连接描述(可选):提供连接的描述。
凭证信息
AWS 区域名称:输入您的 AWS 账户的区域(例如,美国西部)。
凭证类型:目前,“AWS 访问密钥”是唯一选项。输入要连接的账户的 AWS 访问密钥 ID 和 AWS 密钥访问密钥。如需了解详情,请参阅 AWS IAM 文档。我们建议您创建一个 IAM 角色并使用相应的访问密钥。
如需更高级的权限,请将
AmazonBedrockFullAccess授予 IAM 角色。如需最小权限,请将以下权限授予 IAM 角色:
bedrock:InvokeModelbedrock:InvokeModelWithResponseStreambedrock:ListFoundationModelsbedrock:GetFoundationModel
连接信息
连接名称:提供一个描述性的连接名称,用户以后使用此连接时将引用该名称。
连接描述(可选):提供连接的描述。
凭证信息
凭证类型:目前,“API 密钥”是唯一选项。
API 密钥:输入您的 Anthropic API 密钥。通过 Anthropic 控制台获取 API 密钥。
Connection Information
Connection Name: Provide a descriptive connection name that users will reference when using this connection later.
Connection Description (optional): Provide a description for the connection.
Credential Information
Credential Type: There are 2 credential types available.
注意
Before you can generate content calls, you must first deploy a model. To get started, learn how to create and deploy an Azure OpenAI model.
Azure API Key: Enter your Azure OpenAI API Key. You must first follow the Azure API Management guide to set up your model for use with Azure OpenAI API.
Azure API Base URL: Enter your Azure Base URL (for example,
https://<account_name>.openai.azure.com).Azure API Version: Enter your Azure API version (for example,
2024-10-21).Azure Client ID: Contact your IT team for help creating this parameter. Provide this setup guide as reference.
Azure Tenant ID: Contact your IT team for help creating this parameter. Provide this setup guide as reference.
Azure Client Secret: Contact your IT team for help creating this parameter. Provide this setup guide as reference.
Azure Subscription ID: Enter your Azure subscription ID. You can find it under Resource Groups > your resource group > Subscription > your subscription > Subscription ID. Alternatively, you can go to AI Foundry, select your account name, and then select the foundry portal to find the information.
Azure Resource Group Name: Enter your Azure resource group name. You can find it under Resource Groups > your resource group. Alternatively, you can go to AI Foundry, select your account name, and then select the foundry portal to find the information.
Azure (Resource) Account Name: Enter your Azure account name. You can find this from the AI Foundry page.
连接信息
连接名称:提供一个描述性的连接名称,用户以后使用此连接时将引用该名称。
连接描述(可选):提供连接的描述。
凭证信息
凭证类型:目前,“API 密钥”是唯一选项。
API 密钥:输入您的 DeepSeek API 密钥。了解如何从您 DeepSeek 账户获取 API 密钥。
连接信息
连接名称:提供一个描述性的连接名称,用户以后使用此连接时将引用该名称。
连接描述(可选):提供连接的描述。
凭证信息
凭证类型:目前,“Vertex 凭证 JSON”是唯一的选项。
Vertex 凭证:复制并粘贴包含服务账户密钥的 JSON。了解如何从 Google Cloud 创建服务账户密钥。
连接信息
连接名称:提供一个描述性的连接名称,用户以后使用此连接时将引用该名称。
连接描述(可选):提供连接的描述。
凭证信息
凭证类型:目前,“API 密钥”是唯一选项。
API 密钥:输入您的 GroqCloud API 密钥。了解如何从您的 GroqCloud 账户创建 API 密钥。
连接信息
连接名称:提供一个描述性的连接名称,用户以后使用此连接时将引用该名称。
连接描述(可选):提供连接的描述。
模型列表:输入要与此连接一起使用的模型列表。用逗号分隔模型(例如,
meta-llama/Llama-Prompt-Guard-2-86M,meta-llama/Llama-3.3-70B-Instruct,katanemo/Arch-Router-1.5B)。确保每个模型均已通过 Hugging Face 推理提供商部署在 Hugging Face 上,支持文本生成,并且您拥有其访问权限。目前,仅支持通过 Hugging Face 自有的推理提供商部署的模型。注意
请确保模型名称正确。如果名称不正确,您将无法在提示词工具中向它们发起请求。
凭证信息
凭证类型:目前,“API 密钥”是唯一选项。
API 密钥:输入您的 Hugging Face 用户访问令牌。了解如何从您的 Hugging Face 账户创建用户访问令牌。
连接信息
连接名称:提供一个描述性的连接名称,用户以后使用此连接时将引用该名称。
连接描述(可选):提供连接的描述。
凭证信息
凭证类型:目前,“API 密钥”是唯一选项。
API 密钥:输入您的 Mistral API 密钥。了解如何从您的 Minstral 账户创建 API 密钥。
使用与 OpenAI 兼容的连接来连接到遵循 OpenAI API 规范的 LLM API。
连接信息
连接名称:提供一个描述性的连接名称,用户以后使用此连接时将引用该名称。
连接描述(可选):提供连接的描述。
凭证信息
凭证类型:目前,“API 密钥”是唯一选项。
基 URL:您的 OpenAI 兼容提供商或自定义模型的 API 端点(例如,
https://your-custom-endpoint.com/v1)。API 密钥:输入您的 OpenAI 兼容提供商或自定义模型的 API 密钥。
连接信息
连接名称:提供一个描述性的连接名称,用户以后使用此连接时将引用该名称。
连接描述(可选):提供连接的描述。
凭证信息
凭证类型:目前,“API 密钥”是唯一选项。
API 密钥:输入您的 Perplexity API 密钥。了解如何从您的 Perplexity 账户创建 API 密钥。