You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
The text was updated successfully, but these errors were encountered:
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"
The text was updated successfully, but these errors were encountered: