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 — Add multi-vector late interaction (ColBERT-style) index support · Issue #3970 · ArcadeData/arcadedb

Add multi-vector late interaction (ColBERT-style) index support #3970

New issue
Copy link
New issue
Copy link
Open
Feature
Open
Add multi-vector late interaction (ColBERT-style) index support#3970
Feature
Copy link
Assignees
lvca
Labels
engineCore engine: document/schema APIenhancementNew feature or requestseverity:minorCosmetic, documentation, edge case, or a workaround existsvectorVector index and embedding search

Description

@lvca
lvca
opened on Apr 23, 2026
Issue body actions

Summary

Add a new index type for multi-vector (ColBERT/ColPali-style) retrieval alongside the existing LSM_VECTOR (HNSW) index. This unlocks citation-grade RAG for agentic use cases (primary consumer: ArcadeBrain).

Motivation

The current LSM_VECTOR index stores one vector per document, which averages token-level signal and loses precision on:

  • multi-concept queries
  • rare terms / proper nouns
  • long documents (books)
  • citation-grade retrieval for LLM agents

ColBERT-style late interaction keeps one vector per token and computes MaxSim at query time. Published benchmarks (BEIR) show recall@10 improvements from ~60-70% (dense) to ~85-95% (late interaction) on hard queries. This is the dominant pattern in 2026 for high-precision RAG.

Competitors (Vespa, Qdrant, Weaviate, Milvus) already support this natively. ArcadeDB is the only graph+vector DB that does not.

Scope (Phase 1: denormalized approach)

Each token of a document is indexed as its own HNSW entry carrying a back-pointer RID to the parent document. Query expands each query token against the HNSW graph, aggregates candidates by parent RID, then applies MaxSim (the existing vector.multiScore(..., 'MAX') function can be reused for the fusion step).

Schema / Metadata

  • Add multiVector: boolean and parentRidProperty: string fields to LSMVectorIndexMetadata
  • Extend TypeLSMVectorIndexBuilder with .withMultiVector(true).withParentProperty("docRid")
  • Parse new multiVector flag in SQL CREATE INDEX ... METADATA {...} path
  • Validate: multi-vector index requires a non-indexed LINK property for parent RID

Storage / Insert path

  • Add LSMVectorIndex.putMulti(RID parentRid, float[][] tokens) that loops and inserts N entries, each tagged with parentRid
  • Extend VectorLocationIndex entry with parentRid field
  • Hook into record-update path: on parent update, delete old token set, insert new
  • Hook into record-delete path: cascade-delete all tokens where parentRid = deletedRid

Query path

  • New SQL function SQLFunctionVectorMultiNeighbors in function/sql/vector/ - signature vector.multiNeighbors('Type[prop]', float[][], k, {efSearch, candidateMultiplier})
  • Algorithm: for each query token -> HNSW search top-k' (default k'=k*10); collect candidate parent RIDs; compute MaxSim per candidate; sort, return top-k
  • Reuse existing vector.multiScore(..., 'MAX') aggregation
  • Register alias vectorMultiNeighbors for naming consistency

Cypher integration

  • Add procedure db.index.vector.queryMultiNodes(indexName, k, float[][]) in query/opencypher/procedures/db/

Parameter binding

  • Verify float[][] / nested JSON array binds correctly through PostCommandHandler / PostQueryHandler
  • Test both SQL literal [[0.1, 0.2],[0.3, 0.4]] and HTTP JSON body param

Tests (TDD)

  • LSMMultiVectorIndexTest - 10 docs x 5 tokens x 64 dims, assert top-k matches brute-force MaxSim
  • Regression: cascade delete, update parent vectors
  • HTTP-level test in server/ module with nested array param
  • Cypher test for db.index.vector.queryMultiNodes
  • 1k-docs end-to-end test tagged @Tag("slow")

Out of Scope (future phases)

  • Phase 2: Contiguous binary serialization for 2D float arrays (ARRAY_OF_FLOATS_2D type). Current ARRAY_OF_FLOATS uses VarInt-wrapped IEEE754 (~5 bytes/float worst case) - a dense format halves storage.
  • Phase 3: Native LSM_MULTIVECTOR index type with PLAID centroid pre-filter, product quantization for multi-vector.

Compatibility

  • Additive only - new index type, existing LSM_VECTOR untouched.
  • No new dependencies (JVector 4.0 already handles it).
  • Zero breaking changes.

Estimated effort

~2 weeks for one engineer.

Reacted by Phil Fuchs

Activity

  1. lvca
    self-assigned this
    on Apr 23, 2026
  2. lvca
    added the
    Feature
    issue type on Apr 23, 2026
  3. odysseaspenta commented on Apr 24, 2026

    @odysseaspenta
    odysseaspenta
    on Apr 24, 2026
    SponsorContributor
    More actions

    This sounds really interesting. I'll try to contribute an evaluation after it is available to compare multi-vector vs single-vector retrieval when it is done.

    Reacted by Luca Garulli, Roberto Franchini and Phil Fuchs
  4. mergify
    added a commit that references this issue on May 3, 2026

    chore(deps): bump org.postgresql:postgresql from 42.7.10 to 42.7.11 […

    03c204f
  5. tae898
    added a commit that references this issue on Jun 28, 2026

    chore(deps): bump org.postgresql:postgresql from 42.7.10 to 42.7.11 […

    8a485d0
  6. robfrank
    added this to the 26.8.1 milestone on Jul 9, 2026
  7. robfrank
    modified the milestones: 26.8.1, 26.9.1 on Aug 3, 2026
  8. robfrank
    unassigned
    lvca
    on Aug 30, 2026
  9. robfrank
    added
    engineCore engine: document/schema API
    enhancementNew feature or request
    vectorVector index and embedding search
    on Aug 30, 2026
  10. lvca
    modified the milestones: 26.9.1, 26.10.1 on Sep 3, 2026
  11. philfuchs commented on Sep 4, 2026

    @philfuchs
    philfuchs
    on Sep 4, 2026
    More actions

    Is there an ETA of any kind? This functionality would be very useful for my projects - currently I have to use a workaround (using Qdrant and code).

  12. lvca
    self-assigned this
    on Sep 4, 2026
  13. lvca commented on Sep 4, 2026

    @lvca
    lvca
    on Sep 4, 2026
    MemberAuthor
    More actions

    This is scheduled for this month, stay tuned!

  14. robfrank
    added
    severity:minorCosmetic, documentation, edge case, or a workaround exists
    on Sep 19, 2026
  15. robfrank
    modified the milestones: 26.10.1, 26.11.1 on Oct 5, 2026
  16. lvca
    removed this from the 26.10.2 milestone on Oct 15, 2026
  17. philfuchs commented on Nov 23, 2026

    @philfuchs
    philfuchs
    on Nov 23, 2026
    More actions

    Any updates?

  18. robfrank
    modified the milestone: 26.12.1 on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lvca
    lvca

Labels

engineCore engine: document/schema APIenhancementNew feature or requestseverity:minorCosmetic, documentation, edge case, or a workaround existsvectorVector index and embedding search

Type

Feature

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.