AI Agent giving json as output

Describe the problem/error/question

I had designed a workflow with AI Agent. Now after couple of qs and it seems to give some odd json as response.

Please share your workflow

Further investigating found it seems to not go to Qdrant Vector store to respond.

. For successful responses it goes there.

** Not sure if I can share the canvas.

Share the output returned by the last node

Human: expecting Sir on the response
AI: Sir,
{ “name”: “Qdrant_Vector_Store”, “parameters”: { “input”: “your string input” }

Information on your n8n setup

  • n8n version: 1.103.2
  • Database (default: SQLite): NA
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system:

Hi there, there’s couple of things that i ca. suggest you to do / check

  • Check the ollama model that you use support tool calling, if it is then good, if its not then, it might be the cause on why the qdrant was not called
  • Specify in the System Message prompt about the existence of Qdrant tool and how to use it , when to use it, etc.
  • Also specify in the prompt to never output json, instead always parse it as a human readable text

Hope that answers your question


Did you mean to add like this? If not could you please guide me how do I specify “System Message prompt about the existence of Qdrant tool”

And with this also I am sometimes getting answer like “{ “name”: “Qdrant_Vector_Store”, “parameters”: { “input”: “your string input” }”

Thanks

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.