Skip to content

A way to create vector index using SQL query ? #2468

Description

@ExtReMLapin

Hello, back from my long sleep.

As of today the docs shows a way to create a HNSW using SQL import and java, but nothing else.

I gave a try with :

CREATE INDEX embedding_index ON EMBEDDING(vector)
ENGINE HNSW WITH {
  "dimensions": 1024,
  "distanceFunction": "Cosine"
}

but it fails with

{
    "error": "Error on transaction commit",
    "detail": "CREATE INDEX embedding_index ON EMBEDDING(vector) ENGINE HNSW WITH {   \"dimensions\": 1024,   \"distanceFunction\": \"Cosine\" }",
    "exception": "com.arcadedb.exception.CommandSQLParsingException"
}

What am I supposed to do to create an index in SQL ?

Thanks

not going to lie, i shoved the whole documentation and arcadedb to google gemini and told him to find me a way to create a vector, that's what it came up with

Metadata

Metadata

Assignees

Labels

invalidThis doesn't seem right

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions