Table of Contents

Method GetCollection

Namespace
Qavren.Edge.VectorData
Assembly
Qavren.Edge.VectorData.dll

GetCollection<TKey, TRecord>(string, VectorStoreCollectionDefinition?)

Gets a collection from the vector store.

[RequiresDynamicCode("Reflects over TRecord. Use GetDynamicCollection in trimmed or AOT apps.")]
[RequiresUnreferencedCode("Reflects over TRecord. Use GetDynamicCollection in trimmed or AOT apps.")]
public override EdgeVectorStoreCollection<TKey, TRecord> GetCollection<TKey, TRecord>(string name, VectorStoreCollectionDefinition? definition = null) where TKey : notnull where TRecord : class

Parameters

name string

The name of the collection.

definition VectorStoreCollectionDefinition

The schema of the record type.

Returns

EdgeVectorStoreCollection<TKey, TRecord>

A new VectorStoreCollection<TKey,TRecord> instance for managing the records in the collection.

Type Parameters

TKey

The data type of the record key.

TRecord

The record data model to use for adding, updating, and retrieving data from the collection.

Remarks

To successfully request a collection, either TRecord must be annotated with attributes that define the schema of the record type, or definition must be provided.

See Also