i use ollama replace open ai。
@bean
public EmbeddingModel embeddingModel() {
// Can be any other EmbeddingModel implementation.
return new OllamaEmbeddingModel(new OllamaApi());
}
i get a error:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'chunkController' defined in file [D:\project\spring-ai-starter-kit-main\target\classes\com\neo4j\springaistarterkit\ChunkController.class]: Unsatisfied dependency expressed through constructor parameter 1: Error creating bean with name 'vectorStore' defined in com.neo4j.springaistarterkit.SpringAiStarterKitApplication: Invalid input 'F': expected whitespace, comment or ON (line 1, column 53 (offset: 52))
"CREATE CONSTRAINT Document_unique_idx IF NOT EXISTS FOR (n:Chunk) REQUIRE n.id IS UNIQUE"