Skip to content

Comments

feat: expose the vector rerank method in the CypherEngine API#136

Merged
ChunxuTang merged 3 commits intolance-format:mainfrom
ChunxuTang:engine-rerank
Feb 15, 2026
Merged

feat: expose the vector rerank method in the CypherEngine API#136
ChunxuTang merged 3 commits intolance-format:mainfrom
ChunxuTang:engine-rerank

Conversation

@ChunxuTang
Copy link
Collaborator

This PR exposes the vector rerank method in the CypherEngine API, similar to the existing CypherQuery API.

An example:

engine = CypherEngine(config, datasets)

results = engine.execute_with_vector_rerank(
    "MATCH (d:Document) WHERE d.category = 'tech' RETURN d.id, d.name, d.embedding",
    VectorSearch("d.embedding")
    .query_vector([1.0, 0.0, 0.0])
    .metric(DistanceMetric.L2)
    .top_k(2),
)

data = results.to_pydict()

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ChunxuTang ChunxuTang merged commit 866921d into lance-format:main Feb 15, 2026
9 checks passed
@ChunxuTang ChunxuTang deleted the engine-rerank branch February 15, 2026 05:13
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.

3 participants