Share via


VectorStore.GetDynamicCollection Method

Definition

Gets a collection from the vector store, using dynamic mapping; the record type is represented as a Dictionary<TKey,TValue>.

public:
 abstract Microsoft::Extensions::VectorData::VectorStoreCollection<System::Object ^, System::Collections::Generic::Dictionary<System::String ^, System::Object ^> ^> ^ GetDynamicCollection(System::String ^ name, Microsoft::Extensions::VectorData::VectorStoreCollectionDefinition ^ definition);
public abstract Microsoft.Extensions.VectorData.VectorStoreCollection<object,System.Collections.Generic.Dictionary<string,object?>> GetDynamicCollection(string name, Microsoft.Extensions.VectorData.VectorStoreCollectionDefinition definition);
abstract member GetDynamicCollection : string * Microsoft.Extensions.VectorData.VectorStoreCollectionDefinition -> Microsoft.Extensions.VectorData.VectorStoreCollection<obj, System.Collections.Generic.Dictionary<string, obj>>
Public MustOverride Function GetDynamicCollection (name As String, definition As VectorStoreCollectionDefinition) As VectorStoreCollection(Of Object, Dictionary(Of String, Object))

Parameters

name
String

The name of the collection.

definition
VectorStoreCollectionDefinition

The schema of the record type.

Returns

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

Applies to