snow cortex complete¶
在给定提示的情况下,命令使用您选择的语言模型生成响应。在最简单的用例中,提示是一个字符串。您还可以提供包含对话历史记录的 JSON 文件,包括多个提示和响应,用于交互式聊天风格的使用。
语法
实参
textPrompt to be used to generate a completion. Cannot be combined with –file option.
选项
--model TEXT指定要使用的模型的字符串。默认值:llama3.1-70b。
--backend [sql|rest]指定是使用 sql 还是 rest 后端的字符串。默认值:rest。
--file FILE包含用于生成补全的对话历史记录的 JSON 文件。不能与 TEXT 实参结合使用。
--connection, -c, --environment TEXTName of the connection, as defined in your config.toml file. Default: default.
--host TEXT连接的主机地址。替换为连接指定的值。
--port INTEGER连接的端口。替换为连接指定的值。
--account, --accountname TEXT分配给 Snowflake 账户的名称。替换为连接指定的值。
--user, --username TEXT连接到 Snowflake 的用户名。替换为连接指定的值。
--password TEXTSnowflake 密码。替换为连接指定的值。
--authenticator TEXTSnowflake 身份验证器。替换为连接指定的值。
--workload-identity-provider TEXT工作负载身份提供商(AWS、AZURE、GCP、OIDC)。替换为连接指定的值。
--private-key-file, --private-key-path TEXTSnowflake 私钥文件路径。替换为连接指定的值。
--token TEXT连接到 Snowflake 时使用的 OAuth 令牌。
--token-file-path TEXT连接到 Snowflake 时使用的带有 OAuth 令牌的文件路径。
--database, --dbname TEXT要使用的数据库。替换为连接指定的值。
--schema, --schemaname TEXT要使用的数据库架构。替换为连接指定的值。
--role, --rolename TEXT要使用的角色。替换为连接指定的值。
--warehouse TEXT要使用的仓库。替换为连接指定的值。
--temporary-connection, -xUses a connection defined with command-line parameters, instead of one defined in config. Default: False.
--mfa-passcode TEXT用于多重身份验证的令牌 (MFA)。
--enable-diag是否生成连接诊断报告。默认值:False。
--diag-log-path TEXTPath for the generated report. Defaults to system temporary directory. Default: <system_temporary_directory>.
--diag-allowlist-path TEXT包含允许列表参数的 JSON 文件的路径。
--oauth-client-id TEXT身份提供商为 Snowflake 集成提供的客户端 ID 的值。
--oauth-client-secret TEXT身份提供商为 Snowflake 集成提供的客户端密钥的值。
--oauth-authorization-url TEXT向驱动程序提供授权码的身份提供商端点。
--oauth-token-request-url TEXT向驱动程序提供访问令牌的身份提供商端点。
--oauth-redirect-uri TEXTURI 用于授权码重定向。
--oauth-scope TEXT身份提供商授权请求中请求的范围。
--oauth-disable-pkceDisables Proof Key for Code Exchange (PKCE). Default: False.
--oauth-enable-refresh-tokensEnables a silent re-authentication when the actual access token becomes outdated. Default: False.
--oauth-enable-single-use-refresh-tokensWhether to opt-in to single-use refresh token semantics. Default: False.
--client-store-temporary-credential存储临时凭据。
--format [TABLE%JSON%JSON_EXT|CSV]指定输出格式。默认:TABLE。
--verbose, -vDisplays log entries for log levels info and higher. Default: False.
--debugDisplays log entries for log levels debug and higher; debug logs contain additional information. Default: False.
--silent关闭到控制台的中间输出。默认值:False。
--enhanced-exit-codes根据错误类型区分退出错误代码。默认值:False。
--decimal-precision INTEGERNumber of decimal places to display for decimal values. Uses Python’s default precision if not specified. [env var: SNOWFLAKE_DECIMAL_PRECISION].
--helpDisplays the help text for this command.
使用说明
在最简单的用例中,提示是一个字符串。您还可以提供包含对话历史记录的 JSON 文件,包括多个提示和响应,用于交互式聊天风格对话。
示例
-
使用默认模型提出问题。
-
使用指定模型提出问题。