FlowiseAI / Flowise

Drag & drop UI to build your customized LLM flow
https://flowiseai.com
Apache License 2.0
31.99k stars 16.69k forks source link

[BUG] ChatLocalAI model not working #695

Closed Shekhar-Gudepu closed 8 months ago

Shekhar-Gudepu commented 1 year ago

Below is the flow I created for a simple agent that uses SERP API to generate responses.

flowise

But I am getting multiple errors when I ask simple questions to the agent . Below are the errors,

Question: Hi Error: Failed to parse. Text: "". Error: SyntaxError: Unexpected end of JSON input Error: Failed to parse. Text: "". Error: SyntaxError: Unexpected end of JSON input

Question: What is flowise Failed to parse. Text: "Error: Failed to parse. Text: "ERROR: The prompt size exceeds the context window size and cannot be processed.". Error: SyntaxError: Unexppected token E in JSON at position 0 ". Error: SyntaxError: Unexpected token E in JSON at position 0

Expected behavior I expect the agent to call the SERP API if necessary and return correct responses.

Setup: Installation: docker
Flowise Version: flowise@1.3.0 OS: Windows Browser: Chrome

Note: The flow works as expected when the ChatOpenAI chat model is used. gpt4all.bin model was downloaded from (https://gpt4all.io/models/ggml-gpt4all-j.bin)

HenryHengZJ commented 1 year ago

Open source models like gpt4all is not capable for agent, they only work for simpler prompt using LLMChain: image

gregoryca commented 1 year ago

is there a way to identify how to use the right models ? looks like the current implementation of chatlocalai is a bit limited.