Skip to content

ruvector create command fails with 'Missing field dimensions' #807

Description

@dgdev25

Bug Report: RuVector CLI — create command fails with "Missing field dimensions"

Environment

  • ruvector version: 0.1.95 (npm package)
  • Node version: v24.18.0
  • Platform: Linux x64
  • OS: Ubuntu 7.0.0-28-generic

Problem

The ruvector create command fails with Missing field 'dimensions' error despite the --dimension flag being correctly passed.

Reproduction Steps

npx ruvector create ~/.magpie/concepts.rvf --dimension 384 --metric cosine

Expected Behavior

Creates a new vector database at ~/.magpie/concepts.rvf with:

  • Dimension: 384
  • Metric: cosine

Actual Behavior

- Creating database...
✖ Failed to create database
Missing field `dimensions`

Investigation

The CLI help shows --dimension as the correct flag (lowercase 'd'):

$ npx ruvector create --help
Options:
  -d, --dimension <number>  Vector dimension (default: "384")
  -m, --metric <type>       Distance metric (cosine|euclidean|dot) (default: "cosine")

However, the error message references dimensions (plural), suggesting an internal field-name mismatch in the create logic.

Workaround

None identified. Vector store cannot be created.

Additional Notes

  • The error occurs consistently with both -d and --dimension forms
  • npx ruvector info works correctly, confirming CLI is installed properly
  • npx ruvector stats works on pre-existing databases

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions