I am using the AI-text classifier node and I use Llama3.2. I use Ollama to run the model locally. There is a problem in parsing the answer from the AI-Model. The text classifier node hast to decide if the Chatmessage input belongs to the category correct, incorrect or not existing. Sometimes the parsing works, but most of the time not. I also tried to adjust the systemprompt, but that did not work reliable.
Failed to parse. Text: “{\n “correct”: false,\n " incorrect”: false,\n “not existing”: true\n}“. Error: [\n {\n “code”: “invalid_type”,\n “expected”: “boolean”,\n “received”: “undefined”,\n “path”: [\n " correct”\n ],\n “message”: “Required”\n }\n]\n\nTroubleshooting URL: https://js.langchain.com/docs/troubleshooting/errors/OUTPUT_PARSING_FAILURE/\n
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
- **n8n version:**latest version
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): locally
- **Operating system:**windows