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

Neo4j embedding store #548

Merged
merged 1 commit into from
May 8, 2024
Merged

Neo4j embedding store #548

merged 1 commit into from
May 8, 2024

Conversation

jmartisk
Copy link
Collaborator

@jmartisk jmartisk commented May 7, 2024

No description provided.

@jmartisk
Copy link
Collaborator Author

jmartisk commented May 7, 2024

CC @adriens if you want to give it a look already. You can set quarkus-neo4j.version to 3.9.0 and it will compile and work, but then to use dev services, you'll need to add quarkus.neo4j.devservices.image-name=neo4j:5 in application.properties. I'd like to wait for a quarkus-neo4j version that already has 5 as the default version and avoid overriding it on our side

Update: Now after updating to quarkus-neo4j 4.0.0 everything should work just fine

@Override
public Neo4jEmbeddingStore apply(SyntheticCreationalContext<Neo4jEmbeddingStore> context) {
Neo4jEmbeddingStore.Neo4jEmbeddingStoreBuilder builder = Neo4jEmbeddingStore.builder();
Driver driver = context.getInjectedReference(Driver.class, new Default.Literal());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did not know that trick, good stuff.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably best to use the static instance of the qualifier instead of creating a new one

@jmartisk jmartisk force-pushed the neo4j branch 3 times, most recently from cb0dee1 to 610ff76 Compare May 7, 2024 12:32
@jmartisk jmartisk marked this pull request as ready for review May 7, 2024 12:32
@jmartisk jmartisk requested a review from a team as a code owner May 7, 2024 12:32
Copy link
Collaborator

@geoand geoand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a couple small comments

Co-authored-by: Michael Simons <michael@simons.ac>
@geoand geoand merged commit 765074b into quarkiverse:main May 8, 2024
12 checks passed
@jmartisk jmartisk deleted the neo4j branch May 9, 2024 07:16
@jmartisk jmartisk mentioned this pull request May 9, 2024
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

Successfully merging this pull request may close these issues.

None yet

3 participants