Skip to content

Groq 聊天模型节点#

使用 Groq 聊天模型节点可以访问 Groq 的大型语言模型,用于对话式 AI 和文本生成任务。

本页将介绍 Groq 聊天模型节点的参数配置,并提供更多资源链接。

凭证信息

您可以在此处找到该节点的认证信息:Groq 凭证文档

/// 注意 | 子节点中的参数解析 子节点在使用表达式处理多个项目时的行为与其他节点不同。

大多数节点(包括根节点)会接收任意数量的输入项,处理这些项目,然后输出结果。您可以使用表达式来引用输入项,节点会依次为每个项目解析表达式。例如,给定五个 name 值作为输入,表达式 {{ $json.name }} 会依次解析为每个名称。

而在子节点中,表达式总是解析为第一个项目。例如,给定五个 name 值作为输入,表达式 {{ $json.name }} 总是解析为第一个名称。 ///

节点参数#

  • 模型:选择用于生成文本补全的模型。n8n 会从 Groq API 动态加载可用模型。了解更多信息请参阅 Groq 模型文档

节点选项#

  • 最大令牌数:设置使用的最大令牌数,这将决定补全文本的长度。
  • 采样温度:此选项用于控制采样过程的随机性。较高的温度会产生更多样化的采样结果,但也会增加产生幻觉文本的风险。

模板和示例#

Conversational Interviews with AI Agents and n8n Forms

by Jimleuk

View template details
Telegram chat with PDF

by felipe biava cataneo

View template details
Build an AI-Powered Tech Radar Advisor with SQL DB, RAG, and Routing Agents

by Sean Lon

View template details
Browse Groq 聊天模型 integration templates, or search all templates

相关资源#

更多关于该服务的信息,请参考 Groq API 文档

查看 n8n 的高级 AI 文档。

AI glossary#

  • completion: Completions are the responses generated by a model like GPT.
  • hallucinations: Hallucination in AI is when an LLM (large language model) mistakenly perceives patterns or objects that don't exist.
  • vector database: A vector database stores mathematical representations of information. Use with embeddings and retrievers to create a database that your AI can access when answering questions.
  • vector store: A vector store, or vector database, stores mathematical representations of information. Use with embeddings and retrievers to create a database that your AI can access when answering questions.