Configuring Vector Collections

The primary object for interacting with vector storage is a Vector Collection. A Vector Collection holds information about the vectors and associated metadata (user values).

Configuring a VectorCollection Resource

You can use any of the following configuration options in the VectorCollection resource. For more information, see the API Reference.

Field Description

name

Name of the vector collection configuration that you’re creating. If empty, the custom resource (CR) name is used.

hazelcastResourceName

Defines the name of the Hazelcast resource for which the vector collection configuration is created.

indexes

Information about configuration for indexes.

Example Configuration

The following VectorCollection custom resource creates a vector collection configuration for the Hazelcast custom resource that is defined in the hazelcastResourceName field.

Example configuration
apiVersion: hazelcast.com/v1alpha1
kind: VectorCollection
metadata:
  name: vectorcollection-sample
spec:
  hazelcastResourceName: hazelcast
  indexes:
  - dimension: 10
    efConstruction: 256
    maxDegree: 32
    metric: Dot
    useDeduplication: false

After creating the VectorCollection resource, use the following command to check its status:

kubectl get vectorcollection vectorcollection-sample -o wide

This should produce output like this:

NAME                      STATUS    HAZELCAST-RESOURCE   MESSAGE
vectorcollection-sample   Success   hazelcast