forked from neo4j-contrib/neo4j-apoc-procedures
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fixes 3971: Check how to integrate vector databases via rest APIs #446
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vga91
force-pushed
the
issue-3971
branch
4 times, most recently
from
April 22, 2024 12:08
08588a5
to
aeaa48b
Compare
|
||
.Example results | ||
[opts="header"] | ||
|=== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rivedere questo score che forse non serve
|
||
.Example results | ||
[opts="header"] | ||
|=== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rivedere questo score
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
https://github.com/neo4j-contrib/neo4j-apoc-procedures/issues/3971
Changes
Created procedures for chroma and qdrant.
Emulate the https://neo4j.com/docs/cypher-manual/current/indexes/semantic-indexes/vector-indexes/ commands.
apoc.vectordb.qdrant.createCollection
apoc.vectordb.qdrant.deleteCollection
apoc.vectordb.qdrant.upsert
apoc.vectordb.qdrant.get
andapoc.vectordb.qdrant.query
apoc.vectordb.qdrant.delete
And the same for the chroma procedures.
NOTE: Like the
apoc.ml
ones, the chroma and qdrand procedures are implemented in such a way that they have the same signature, even though under the hood they have different bodies/methods/etc.And 2 custom procedures
apoc.vectordb.qdrant.get
andapoc.vectordb.custom
to handle other vector databases (like Pinecone tested in PineconeTest).Using the
apoc.vectordb.*.get
andapoc.vectordb.*.query
procedures, we can auto-create neo4j vector indexes and entities, using the mapping config.To evaluate
apoc.vectordb.custom
could be changed to a more generic naming, e.g.apoc.restapi.custom(<conf>)
, since it could be used with other rest APIsRestAPIConfig
to util packageAdditional notes (after neo4j-contrib PR creation)
Open a follow-up issue:
Test / custom procedures with other databases (like Pinecone)
Problem with Pinecone, create a PR after neo4j-contrib PR creation...
We cannot execute Pinecone fetch API, due to these 2 pieces of apoc core codes:
In both cases, we receive a 200OK, but with no results.