柠檬水模型节点(Lemonade Model node)#
使用 Lemonade Model 节点生成文本补全,使用由 Lemonade 服务器托管和管理的语言模型。该节点是一个简单的与 LangChain 兼容的语言模型根节点,适用于 n8n 工作流中的文本补全任务。
🌐 Use the Lemonade Model node to generate text completions using language models hosted and managed by a Lemonade server. This node is a simple LangChain-compatible language model root node suitable for text completion tasks within n8n workflows.
在此页面上,你会找到 Lemonade Model 节点支持的操作列表,以及更多资源的链接。
🌐 On this page, you'll find a list of operations the Lemonade Model node supports, and links to more resources.
凭证
你可以在这里找到此节点的认证信息。
Parameter resolution in sub-nodes
Sub-nodes behave differently to other nodes when processing multiple items using an expression.
Most nodes, including root nodes, take any number of items as input, process these items, and output the results. You can use expressions to refer to input items, and the node resolves the expression for each item in turn. For example, given an input of five name values, the expression {{ $json.name }} resolves to each name in turn.
In sub-nodes, the expression always resolves to the first item. For example, given an input of five name values, the expression {{ $json.name }} always resolves to the first name.
节点参数(Node parameters)#
使用以下参数配置节点:
🌐 Configure the node with the following parameters.
模型(Model)#
将生成完成内容的模型。模型通过 Lemonade 服务器加载和管理;从节点提供的列表中选择你想使用的模型。
🌐 The model which will generate the completion. Models are loaded and managed through the Lemonade server; select the model you want to use from the list provided by the node.
节点选项(Node options)#
使用这些选项来进一步细化节点的行为。
🌐 Use these options to further refine the node's behavior.
采样温度(Sampling Temperature)#
控制生成文本的随机性。较低的数值使输出更集中和确定,而较高的数值则使输出更具多样性和随机性。
🌐 Controls the randomness of the generated text. Lower values make the output more focused and deterministic, while higher values make it more diverse and random.
| 属性 | 值 |
|---|---|
| 类型 | 数字 |
| 必填 | 否 |
| 默认值 | 0.7 |
热门问题(Top P)#
控制模型在生成文本时可以选择哪些单词。较低的数值会逐步移除最不可能的选项,因此模型只能从更小、更高置信度的词汇池中选择。
🌐 Controls which words the model can choose from when generating text. Lower values progressively remove the least likely options, so the model can only pick from a smaller, higher-confidence pool.
| 属性 | 值 |
|---|---|
| 类型 | 数字 |
| 必填 | 否 |
| 默认 | 1 |
频率惩罚(Frequency Penalty)#
调整对已出现在生成文本中的词元的惩罚。正值会抑制重复,负值会鼓励重复。
🌐 Adjusts the penalty for tokens that have already appeared in the generated text. Positive values discourage repetition, negative values encourage it.
| 属性 | 值 |
|---|---|
| 类型 | 数字 |
| 必填 | 否 |
| 默认 | 0 |
在线惩罚(Presence Penalty)#
根据令牌在生成文本中迄今为止的出现情况调整对其的惩罚。正值会惩罚已经出现过的令牌,从而鼓励多样性。
🌐 Adjusts the penalty for tokens based on their presence in the generated text so far. Positive values penalize tokens that have already appeared, encouraging diversity.
| 属性 | 值 |
|---|---|
| 类型 | 数字 |
| 必填 | 否 |
| 默认 | 0 |
生成的最大令牌数(Max Tokens to Generate)#
要生成的最大令牌数。设置为 -1 表示没有限制。设置为较大值时请小心,因为这可能导致输出非常长。
🌐 The maximum number of tokens to generate. Set to -1 for no limit. Be cautious when setting this to a large value, as it can lead to very long outputs.
| 属性 | 值 |
|---|---|
| 类型 | 数字 |
| 必填 | 否 |
| 默认 | -1 |
停止序列(Stop Sequences)#
模型将停止生成文本的以逗号分隔的序列列表。
🌐 Comma-separated list of sequences where the model will stop generating text.
| 属性 | 值 |
|---|---|
| 类型 | string |
| 必填 | 否 |
| 默认 | "" |
模板和示例(Templates and examples)#
相关资源(Related resources)#
有关该服务的更多信息,请参阅 Lemonade Server 的文档。
🌐 Refer to Lemonade Server's documentation for more information about the service.
View n8n's Advanced AI documentation.