Skip to content

Add vector_indexing to CreateCollection command #2487

Description

@tatu-at-datastax

Currently "CreateCollection" only takes VectorSearchDesc that contains 2 things to optionally configure:

  1. source_model: values like ada002, bert
  2. metric (was: "function", in C "similarity_function"): values like dot_product, cosine, euclidean

There are more options that can be added, listed here:

https://github.com/datastax/cassandra/blob/main/src/java/org/apache/cassandra/index/sai/VECTOR.md?plain=1#L18

and some if not all should be added:

  • maximum_node_connections (default: 16)
    • valid range: 1-512
  • construction_beam_width (default: 100)
    • valid range: 1-3200
  • neighborhood_overflow (default: 1.0 in memtable, 1.2 in compaction)
    • valid range: > 0
  • alpha (default: dimension > 3 gets 1.2. Otherwise, 2.0 in memtable, 1.4 in compaction)
    • valid range: > 0
  • enable_hierarchy (default: false)
    • valid range: true/false

EDIT: looks like DSE-6.9 does NOT support these maximum_node_connections, construction_beam_width
or enable_hierarchy options (and probably not others either), only HCD does?

Not sure how to proceed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions