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

  1. Use EmbeddingModel to generate embeddings for documents.
  2. 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 embedding = embeddingModel.embed(doc); doc.setEmbedding(embedding); vectorStore.add(allDocuments); // This line causes an error

// Document class public void setEmbedding(List embedding) { this.embedding = embedding; }

// Error message 'setEmbedding(java.util.List)' in 'org.springframework.ai.document.Document' cannot be applied to '(float[])'

Versions: Spring AI Version: 1.0.0-SNAPSHOT for Redis Vector Store, Vertex-ai-embedding and Vertex-Ai-Gemini Java: 21