大模型节点schema
<pre><code>{
&quot;context&quot;: {//大模型上下文
&quot;enabled&quot;: true,
&quot;valueSelector&quot;: {
&quot;from&quot;: &quot;node999&quot;,
&quot;scope&quot;: &quot;node&quot;,
&quot;keys&quot;: [
&quot;item&quot;
]
}
},
&quot;desc&quot;: &quot;这是一个大模型节点,for testing&quot;,//节点描述
&quot;memoryConfig&quot;: {//memory配置信息
&quot;rolePrefix&quot;: {
&quot;assistant&quot;: &quot;&quot;,
&quot;user&quot;: &quot;&quot;
},
&quot;window&quot;: {
&quot;enabled&quot;: true,
&quot;size&quot;: 50
},
&quot;queryPromptTemplate&quot;: &quot;{{#sys.query#}}&quot;
},
&quot;modelConfig&quot;: {//模型配置信息
&quot;completionParams&quot;: {
&quot;frequencyPenalty&quot;: 0.1,
&quot;maxTokens&quot;: 512,
&quot;presencePenalty&quot;: 0.1,
&quot;temperature&quot;: 0.8,
&quot;topP&quot;: 0.9
},
&quot;mode&quot;: &quot;chat&quot;,
&quot;modelName&quot;: &quot;qwen-long&quot;,
&quot;provider&quot;: &quot;tongyi&quot;
},
&quot;promptTemplates&quot;: [ //Prompt模板配置信息
{
&quot;role&quot;: &quot;system&quot;,
&quot;text&quot;: &quot;You are a helpful AI assistant.\n{{#context#}}&quot;
},
{
&quot;role&quot;: &quot;user&quot;,
&quot;text&quot;: &quot;今天{{#node1.city#}}天气如何?&quot;
}
],
&quot;selected&quot;: true,
&quot;title&quot;: &quot;LLM&quot;,
&quot;type&quot;: &quot;LLM&quot;,
&quot;variables&quot;: [],
&quot;vision&quot;: {
&quot;enabled&quot;: false
}
}</code></pre>