Skip to content

New Vertex AI Embedding functionality breaks existing code #1028

@ddobrin

Description

@ddobrin

New code for Vertex embeddings prevents the ChatModel to be instantiated due to missing configuration for embeddings, even if the code does not leverage embeddings.
https://docs.spring.io/spring-ai/reference/api/embeddings/vertexai-embeddings-text.html

Sample code: simple repro
https://github.com/GoogleCloudPlatform/serverless-production-readiness-java-gcp/tree/main/ai-patterns/spring-ai-quotes

Can be bypassed for now by adding the embedding started to the pom.xml and embedding project and location to the application properties. please see the image below
image

Thank you

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions