Skip to content

Creating a vector index using the example in the documentation fails #2380

@odysseaspenta

Description

@odysseaspenta

I am using v25.7.1 and when trying to create a vector index using the example from the documentation, I get an error.

import database cc.en.300.vec.gz with distanceFunction = 'cosine', m = 16, ef = 128, efConstruction = 128;

The error message is about a missing parameter that is required. Here is the relevant part of the stack trace.

Caused by: com.arcadedb.integration.importer.ImportException: Error on importing Word2Vec datasource at com.arcadedb.integration.importer.format.Word2VecImporterFormat.load(Word2VecImporterFormat.java:55) at com.arcadedb.integration.importer.Importer.loadFromSource(Importer.java:107) at com.arcadedb.integration.importer.Importer.load(Importer.java:53) ... 14 more Caused by: com.arcadedb.index.IndexException: Vertex vector property name is missing from vector index declaration at com.arcadedb.schema.VectorIndexBuilder.create(VectorIndexBuilder.java:95) at com.arcadedb.schema.VectorIndexBuilder.create(VectorIndexBuilder.java:42) at com.arcadedb.integration.importer.vector.TextEmbeddingsImporter.run(TextEmbeddingsImporter.java:150) at com.arcadedb.integration.importer.format.Word2VecImporterFormat.load(Word2VecImporterFormat.java:52)

Changing the command to the following, successfully creates an index.

import database cc.en.300.small.vec.gz with distanceFunction = 'cosine', m = 16, ef = 128, efConstruction = 128, vertexType = Word, edgeType = Proximity, vectorProperty = vector, idProperty = name;

This should either be fixed in the documentation or the importer should have default values for some of these parameters. I could help with fixing this.

Metadata

Metadata

Assignees

Labels

invalidThis doesn't seem right

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions