You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Native: get_vector_index() and list_vector_indexes() miss a vector index whose name is not Type[property] #288
On the native build (arcadedb 26.11.1), db.schema.get_vector_index(type_name, property) returns None and db.schema.list_vector_indexes() leaves out a vector index whose name is not Type[property]. The same call on arcadedb-jvm 26.11.1 returns the VectorIndex. 26.11.1 lets openCypher name the index (CREATE VECTOR INDEX <name> FOR ... ON ...), so a name without brackets is now the usual case for a Neo4j-style script.
Repro (run once with arcadedb==26.11.1 and once with arcadedb-jvm==26.11.1):
importtempfileimportarcadedbdb=arcadedb.create_database(tempfile.mkdtemp() +"/db")
db.command(
"opencypher",
"CREATE VECTOR INDEX article_embedding FOR (n:Article) ON n.embedding ""OPTIONS {indexConfig: {`vector.dimensions`: 3}}",
)
print(arcadedb.__backend__, db.schema.get_vector_index("Article", "embedding"))
print(db.schema.list_vector_indexes())
db.close()
Build
get_vector_index("Article", "embedding")
list_vector_indexes()
arcadedb (native)
None
[]
arcadedb-jvm
a VectorIndex
['article_embedding', 'Article_0_<id>']
The statements work on both builds (SEARCH ... IN (VECTOR INDEX article_embedding ...) returns the same rows), so only the Python VectorIndex object (find_nearest, get_metadata, get_stats, warm_up) is out of reach on native for such an index.
The cause is in src/arcadedb/_native/database.py:1617-1625: _vector_rows() keeps a row only when "[" in r["name"], to skip the per-bucket rows, which assumes the type-level index is always called Type[property]. The type-level row of article_embedding has no fileId and indexTypeLSM_VECTOR, so testing for the missing fileId alone would keep it and still skip the bucket rows. I did not change the code.
I found this while writing the openCypher vector section of the docs (#267, row 7). The page says what is true on both builds and a strict xfail test on the native build pins this gap.
Activity
Native get_vector_index() and list_vector_indexes() find a vector ind…