Repository navigation
docs: db.index.vector.queryNodes filters after the top-k; vector.neighbors where/filter filter before it (ArcadeData/arcadedb#10685) - #506
Merged
robfrank merged 2 commits intoOct 28, 2026
Conversation
…tor.neighbors where/filter filter before it Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
…lter} map since 26.11.1 Engine commit 81c30122fc (ArcadeData/arcadedb#10808) added the fourth argument after this PR was written, so the note that queryNodes has no filter is no longer true. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or 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
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.
Fixes ArcadeData/arcadedb#10685.
The Cypher vector-search pages never said that
db.index.vector.queryNodeshas no filter, so aWHEREafter itsYIELDruns on theknodes it returned. This adds that sentence, and the pre-filtered form, to the Cypher procedure table incypher-clauses.adocand to the Cypher section ofvector.adoc:CALL vector.neighbors(..., { where: { ... } })(since 26.11.1) or thefilteroption, with onewhereexample. The table row forvector.neighborsnow shows the options argument and links to the SQL function.Checked on a 26.11.1-SNAPSHOT build of ArcadeData/arcadedb main (c69898d) with 50 vectors, 10 of tenant
afar from the query and 40 of tenantbnear it, k = 5:CALL db.index.vector.queryNodes('Fact[embedding]', 5, $q) YIELD node, score WITH node, score WHERE node.tenant = 'a'CALL vector.neighbors('Fact[embedding]', $q, 5, {where: {tenant: 'a'}}) YIELD tenant, distanceaCALL vector.neighbors('Fact[embedding]', $q, 5, {filter: [$rid]}) YIELD tenant, distancedocs-validator.pyreports the same three broken cross-references as on main, none from these lines.🤖 Generated with Claude Code