Description of the bug
There is an incompatibility between the EmbeddingModel interface and the RedisVectorStore implementation in version 1.0.0-SNAPSHOT. The EmbeddingModel.embed() method returns List<Double>, but RedisVectorStore expects float[].
Steps to reproduce
- Use
EmbeddingModelto generate embeddings for documents. - Try to add these documents to
RedisVectorStore.
Expected behavior
The RedisVectorStore should accept List<Double> embeddings, matching the return type of EmbeddingModel.embed().
Actual behavior
An error occurs due to type mismatch: RedisVectorStore expects float[] instead of List<Double>.
Code example
```java
// In LoadVectorStore class
List
// Document class
public void setEmbedding(List
// Error message
'setEmbedding(java.util.List
Versions: Spring AI Version: 1.0.0-SNAPSHOT for Redis Vector Store, Vertex-ai-embedding and Vertex-Ai-Gemini Java: 21