Please do a quick search on GitHub issues first, there might be already a duplicate issue for the one you are about to create. If the bug is trivial, just go ahead and create the issue. Otherwise, please take a few moments and fill in the following sections:
Bug description
See the tile
Environment
Please provide as many details as possible: Spring AI version, Java version, which vector store you use if any, etc
Spring AI 1.0.0-M3
Java 21
Vector store: Neo4J 5.24.1
Steps to reproduce
In your application.properties set the property spring.ai.vectorstore.neo4j.embedding-property
with the name of the embedding property you want to use and add a document to the vector store
Expected behavior
A clear and concise description of what you expected to happen.
The document is added to the vector store
Minimal Complete Reproducible example
See the attached zip file
spring ai neo4j vector store bug.zip
Solution
In https://github.com/spring-projects/spring-ai/blob/ca1949c8250187d94d735665b2044a844234aa51/vector-stores/spring-ai-neo4j-store/src/main/java/org/springframework/ai/vectorstore/Neo4jVectorStore.java#L120, change row.embedding
to row[$embeddingProperty]
I would be more than happy to contribute this bugfix, let me know if you want me to :)