It would help if there was a node for:
It would help if there was support for dynamically retrieving and selecting embedding models from OpenAI-compatible providers in the Agent Builder Knowledge → Vector Stores configuration.
Currently, when using Postgres Vector Store and selecting OpenAI as the embedding provider, the UI only allows choosing from the predefined OpenAI embedding models:
- text-embedding-3-small
- text-embedding-3-large
- text-embedding-ada-002
When connecting to an OpenAI-compatible service such as Ollama, the embedding models exposed by that service are not displayed and therefore cannot be selected.
My use case:
I use self-hosted AI services such as Ollama through the OpenAI-compatible API interface. These services often provide their own embedding models, which may differ from the standard OpenAI offerings.
When building RAG workflows with Agent Builder and a Postgres Vector Store, I would like n8n to automatically discover and list the embedding models available on the configured endpoint, allowing me to select the model actually hosted by the provider.
This would improve compatibility with OpenAI-compatible services and make self-hosted deployments more flexible.
Any resources to support this?
- Ollama OpenAI compatibility documentation: OpenAI compatibility · Ollama Blog
- Ollama API documentation: ollama/docs/api.md at main · ollama/ollama · GitHub
Are you willing to work on this?
At the moment I am not able to work on an implementation, but I would be happy to provide feedback and help with testing.