GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Document the vector SQL options and add IndexType.LSM_SPARSE_VECTOR by tae898 · Pull Request #384 · humemai/arcadedb-embedded-python

This repository was archived by the owner on Nov 21, 2026. It is now read-only.

Conversation

@tae898

@tae898 tae898 commented Oct 21, 2026

Copy link
Copy Markdown

Closes #382.

Following the bindings' DSL-first design (docs/api-access-methods.md), the vector features the engine has and our docs did not show are documented as SQL, with tests that run the documented statements and assert the answers; no new wrapper API.

  • docs/guide/vectors.md: graph build settings in CREATE INDEX ... LSM_VECTOR METADATA (neighborOverflowFactor, alphaDiversityRelaxation, addHierarchy), the search options of vector.neighbors (efSearch, filter, where from 26.11.1, groupBy, groupSize, maxDistance), and the sparse index (LSM_SPARSE_VECTOR, vector.sparseNeighbors, minScore); api/vector.md, api/schema.md, api/database.md and java-api-coverage.md follow.
  • IndexType.LSM_SPARSE_VECTOR: the enum lacked the engine's sparse index type, so schema.create_index(..., index_type=...) could not name it.
  • create_vector_index docstring: its add_hierarchy=True default is a deliberate choice of these bindings, while the engine (and plain SQL) defaults to a flat graph.
  • tests/test_vector_sql.py: 13 tests (search options, metadata reaching the index, the two addHierarchy defaults, sparse minScore, the enum member); the two where tests skip before 26.11.1 and a third asserts the engine's "Unknown option" error there.

Checked locally against the 26.10.2 engine: the vector SQL, parameter and sparse test files (61 passed, 2 skipped) and the schema tests (59 passed), pre-commit on the changed files, the strict docs build. The where tests run once the bindings carry 26.11.1.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
tae898 and others added 2 commits October 21, 2026 12:54
@tae898 @claude
Document the vector SQL options and add IndexType.LSM_SPARSE_VECTOR (#…
3e336b4
…382)

The vector guide and API pages now show the vector.neighbors option map (efSearch, filter, where since 26.11.1, groupBy, groupSize, maxDistance), the LSM_VECTOR build settings neighborOverflowFactor, alphaDiversityRelaxation and addHierarchy, and the sparse index options (weightQuantization, minScore). The create_vector_index docstring and docs say that add_hierarchy=True is a deliberate default while the engine defaults to false. IndexType gains the missing LSM_SPARSE_VECTOR member. New tests run the documented SQL and assert the answers; the where tests skip on engines older than 26.11.1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@tae898 @claude
tests: the where option asserts on both engines instead of skipping; …
9883daf
…nosec on test-owned SQL literals (#382)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@tae898
tae898 merged commit 2ce5297 into main Oct 21, 2026
42 of 44 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@tae898
tae898 deleted the vector-api-382 branch October 21, 2026 06:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Vector API: find_nearest filters and groups, build options, sparse index helper

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@tae898
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.