GetVectorCollectionAsync Method
GetVectorCollectionAsync<TKey, TVal>(string)
BETA Gets an IHVectorCollection<TKey, TValue> distributed vector collection with the specified name.
Declaration
Task<IHVectorCollection<TKey, TVal>> GetVectorCollectionAsync<TKey, TVal>(string collectionName)
Parameters
| string | collectionName | The unique name of the vector collection. |
Returns
| Task<IHVectorCollection<TKey, TVal>> | A task that represents the asynchronous operation. The task result contains the vector collection that was retrieved or created. |
Type Parameters
| TKey | The type of the keys in the vector collection. |
| TVal | The type of the values in the vector collection. |
Remarks
If a vector collection with the specified collectionName does not
exist already in the cluster, a new vector collection is created.