Skip to main content
Version: 5.17

Configure 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).

Configure a vector collection resource​

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

FieldDescription
nameName of the vector collection that you're creating. If empty, the custom resource (CR) name is used.
hazelcastResourceNameName of the Hazelcast resource for which the vector collection configuration is created.
indexesInformation 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
yaml
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, you can check its status:

shell
kubectl get vectorcollection vectorcollection-sample -o wide

This should produce output like this:

NAME STATUS HAZELCAST-RESOURCE MESSAGE
vectorcollection-sample Success hazelcast