Summary: The application fails to start due to a missing OllamaConnectionDetails bean when using incompatible versions of spring-ai-starter-model-ollama and spring-ai-pgvector-store-spring-boot-starter.

Environment:

Spring Boot version: (specify your version, e.g. 3.2.x)

Java version: (e.g. 17 or 21)

Spring AI:

Ollama version: 1.0.0-M7

PGVector version: 1.0.0-M6

OS: Windows 11

Issue Description: When using different versions of Spring AI for Ollama (1.0.0-M7) and PGVector (1.0.0-M6), the application fails to start with the following error:

Parameter 0 of method ollamaApi in org.springframework.ai.autoconfigure.ollama.OllamaAutoConfiguration required a bean of type 'org.springframework.ai.autoconfigure.ollama.OllamaConnectionDetails' that could not be found.

The injection point has the following annotations: - @org.springframework.beans.factory.annotation.Autowired(required=true)

Spring suggests defining a bean of type OllamaConnectionDetails, but this bean is normally created automatically when compatible versions are used and required properties are configured.

Root Cause: There is a version compatibility issue between the Ollama and PGVector Spring AI starters:

Ollama starter is on 1.0.0-M7

PGVector starter is only available up to 1.0.0-M6

These versions are not fully compatible. When used together, Spring Boot’s auto-configuration fails, resulting in a missing required bean (OllamaConnectionDetails).

I tried to add base-url: http://localhost:11434 but no solution

Comment From: dafriz

The artifact id changed for pgve tor. Try using spring-ai-starter-vector-store-pgvector and version 1.0.1 of both this and Ollama.