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
namestringThe name of the collection.
definitionVectorStoreCollectionDefinitionThe schema of the record type.
Returns
- EdgeVectorStoreCollection<TKey, TRecord>
A new VectorStoreCollection<TKey,TRecord> instance for managing the records in the collection.
Type Parameters
TKeyThe data type of the record key.
TRecordThe 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