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.
| Field | Description |
|---|---|
|
Name of the vector collection that you’re creating. If empty, the custom resource (CR) name is used. |
|
Name of the Hazelcast resource for which the vector collection configuration is created. |
|
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.
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:
kubectl get vectorcollection vectorcollection-sample -o wide
This should produce output like this:
NAME STATUS HAZELCAST-RESOURCE MESSAGE
vectorcollection-sample Success hazelcast