feat: support lance vector search #83
Merged
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.
This PR implements a vector search API that could be used for a multi-stage graphRAG pipeline: running a normal graph Cypher query to fetch the data, then applying a vector search to post-filering/reranking the returned result.
The vector search integrates both the existing in-memory UDF-based vector search and a new Lance ANN index-based optimized vector search (more suitable for large-scale vector search).
The
execute_with_vector_rerankAPI allows users to query a dataset with a Cypher query first, then filter/rerank the returned dataset (but only with the in-memory vector search to be compatible with the PythonexecuteAPI)Users currently can only run the Lance optimized vector search only from the Rust side, e.g.