Skip to content

a error for CREATE CONSTRAINT Document_unique_idx IF NOT EXISTS FOR (n:Chunk) REQUIRE n.id IS UNIQUE #8

@longlei119

Description

@longlei119

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions