I’ve been following along with the video tutorial “The ULTIMATE n8n RAG AI Agent Template - Local AI Edition” by Cole. In the video, Cole mentions a bug when using the Ollama Chat Model node with PostgreSQL in this template. After testing, I confirmed that the workflow errors out in the final step after querying the vector store.
The suggested fix is to use the OpenAI Chat Model node instead, create a new credential, add a random API key, and change the URL to http://ollama:11434
. However, when I try this, it doesn’t connect, and none of the Ollama models appear in the dropdown menu.
To clarify:
- The Ollama Chat Model node credentials work fine, and the models display correctly.
- The issue seems to be specific to using the OpenAI Chat Model node to connect to Ollama models.
I’ve spent hours troubleshooting this but haven’t been able to resolve it. Has anyone successfully gotten this to work? Any advice or guidance would be greatly appreciated!