CreateCollectionBuilder

DSL for createCollection. Configure exactly one of a single vector or one-or-more named vectors.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Collection-wide HNSW index tuning.

Link copied to clipboard

Store payloads on disk instead of RAM.

Link copied to clipboard

Optimizer tuning.

Link copied to clipboard

Vector quantization, to shrink the collection's memory footprint.

Link copied to clipboard

How many replicas of each shard to keep.

Link copied to clipboard

Number of shards to split the collection into.

Functions

Link copied to clipboard
fun namedVector(name: String, configure: VectorParamsBuilder.() -> Unit)

Add a named vector. Repeatable. Mutually exclusive with vector.

Link copied to clipboard
fun sparseVector(name: String, configure: SparseVectorParamsBuilder.() -> Unit = {})

Add a named sparse vector. Repeatable; may coexist with dense/named vectors (hybrid search).

Link copied to clipboard
fun vector(configure: VectorParamsBuilder.() -> Unit)

Configure a single anonymous vector. Mutually exclusive with namedVector.