-
Notifications
You must be signed in to change notification settings - Fork 158
Description
I have noticed a few of my other applications now fail with the SimpleVectorStore, seems the spring library has changed and not been versioned ?, my new local error:
Incompatible types: org.springframework.ai.embedding.EmbeddingModel cannot be converted to org.springframework.ai.vectorstore.SimpleVectorStore.SimpleVectorStoreBuilder
Playground Errors:
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/Fred/Documents/spring-ai-work/playground-flight-booking-main/src/main/java/ai/spring/demo/ai/playground/Application.java:[46,72] cannot find symbol
symbol: method getContent()
location: variable doc of type org.springframework.ai.document.Document
[ERROR] /Users/Fred/Documents/spring-ai-work/playground-flight-booking-main/src/main/java/ai/spring/demo/ai/playground/Application.java:[53,46] incompatible types: org.springframework.ai.embedding.EmbeddingModel cannot be converted to org.springframework.ai.vectorstore.SimpleVectorStore.SimpleVectorStoreBuilder
[ERROR] /Users/Fred/Documents/spring-ai-work/playground-flight-booking-main/src/main/java/ai/spring/demo/ai/playground/services/CustomerSupportAssistant.java:[63,101] cannot find symbol
symbol: method defaults()
location: class org.springframework.ai.vectorstore.SearchRequest
[INFO] 3 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:37 min
[INFO] Finished at: 2025-02-09T21:08:43+11:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project playground-flight-booking: Compilation failure: Compilation failure:
[ERROR] /Users/Fred/Documents/spring-ai-work/playground-flight-booking-main/src/main/java/ai/spring/demo/ai/playground/Application.java:[46,72] cannot find symbol
[ERROR] symbol: method getContent()
[ERROR] location: variable doc of type org.springframework.ai.document.Document
[ERROR] /Users/Fred/Documents/spring-ai-work/playground-flight-booking-main/src/main/java/ai/spring/demo/ai/playground/Application.java:[53,46] incompatible types: org.springframework.ai.embedding.EmbeddingModel cannot be converted to org.springframework.ai.vectorstore.SimpleVectorStore.SimpleVectorStoreBuilder
[ERROR] /Users/Fred/Documents/spring-ai-work/playground-flight-booking-main/src/main/java/ai/spring/demo/ai/playground/services/CustomerSupportAssistant.java:[63,101] cannot find symbol
[ERROR] symbol: method defaults()
[ERROR] location: class org.springframework.ai.vectorstore.SearchRequest
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException