Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
longlei119 opened this issue Nov 18, 2024 · 0 comments

Comments

@longlei119
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant