Flowise [BUG] 无法计算令牌数量,回退到近似计数错误:未知模型

vcudknz3  于 6个月前  发布在  其他
关注(0)|答案(3)|浏览(64)

我尝试使用ChatGooglePalm与models/chat-bison-001(默认)一起使用,但出现了以下错误:

flowise_1  |     at getEncodingNameForModel (/usr/src/packages/node_modules/js-tiktoken/dist/lite.cjs:217:13)
flowise_1  |     at encodingForModel (/usr/src/packages/node_modules/langchain/dist/util/tiktoken.cjs:24:59)
flowise_1  |     at ChatGooglePaLM.getNumTokens (/usr/src/packages/node_modules/langchain/dist/base_language/index.cjs:96:75)
flowise_1  |     at MapReduceDocumentsChain._call (/usr/src/packages/node_modules/langchain/dist/chains/combine_docs_chain.cjs:180:77)
flowise_1  |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
flowise_1  |     at async MapReduceDocumentsChain.call (/usr/src/packages/node_modules/langchain/dist/chains/base.cjs:104:28)
flowise_1  |     at async ConversationalRetrievalQAChain._call (/usr/src/packages/node_modules/langchain/dist/chains/conversational_retrieval_chain.cjs:146:24)
flowise_1  |     at async ConversationalRetrievalQAChain.call (/usr/src/packages/node_modules/langchain/dist/chains/base.cjs:104:28)
flowise_1  |     at async ConversationalRetrievalQAChain_Chains.run (/usr/src/packages/packages/components/dist/nodes/chains/ConversationalRetrievalQAChain/ConversationalRetrievalQAChain.js:175:25)
flowise_1  |     at async App.processPrediction (/usr/src/packages/packages/server/dist/index.js:840:19)
==flowise_1  | 2023-09-20 13:10:17 [ERROR]: [server]: Error: Cannot read properties of undefined (reading 'text')
flowise_1  | TypeError: Cannot read properties of undefined (reading 'text')
flowise_1  |     at NoOpOutputParser.parseResult (/usr/src/packages/node_modules/langchain/dist/schema/output_parser.cjs:47:42)
flowise_1  |     at NoOpOutputParser.parseResultWithPrompt (/usr/src/packages/node_modules/langchain/dist/schema/output_parser.cjs:20:21)
flowise_1  |     at LLMChain._getFinalOutput (/usr/src/packages/node_modules/langchain/dist/chains/llm_chain.cjs:96:55)
flowise_1  |     at LLMChain._call (/usr/src/packages/node_modules/langchain/dist/chains/llm_chain.cjs:126:42)
flowise_1  |     at async LLMChain.call (/usr/src/packages/node_modules/langchain/dist/chains/base.cjs:104:28)
flowise_1  |     at async StuffDocumentsChain._call (/usr/src/packages/node_modules/langchain/dist/chains/combine_docs_chain.cjs:62:24)
flowise_1  |     at async StuffDocumentsChain.call (/usr/src/packages/node_modules/langchain/dist/chains/base.cjs:104:28)
flowise_1  |     at async MapReduceDocumentsChain._call (/usr/src/packages/node_modules/langchain/dist/chains/combine_docs_chain.cjs:210:24)
flowise_1  |     at async MapReduceDocumentsChain.call (/usr/src/packages/node_modules/langchain/dist/chains/base.cjs:104:28)
flowise_1  |     at async ConversationalRetrievalQAChain._call (/usr/src/packages/node_modules/langchain/dist/chains/conversational_retrieval_chain.cjs:146:24)
huwehgph

huwehgph1#

嗯,也许PaLM有一些设置问题。这里有一个关于如何在Flowise上使用PaLM的教程 - https://youtu.be/CfpZ_xZG3bM?si=jeoPF6KtT42mvjtK

1zmg4dgp

1zmg4dgp2#

可能PaLM有一些设置问题。这里有一个关于如何在Flowise上使用PaLM的教程 - https://youtu.be/CfpZ_xZG3bM?si=jeoPF6KtT42mvjtK
您的剪辑没有使用Conversational Retrieval QA Chain,也没有使用ChatGooglePaLM

bz4sfanl

bz4sfanl3#

GooglePaLM在models/text-bison-001上运行正常,但在models/chat-bison-001上无法运行。

相关问题