GetDynamicCollection(string, VectorStoreCollectionDefinition)

This method creates a vector store collection using its name.

Declaration

// C#
public VectorStoreCollection<object, Dictionary<string, object?>> GetDynamicCollection(string collectionName, VectorStoreRecordDefinition definition)

Parameters

Return Value

A new OracleDynamicCollection instance for managing the records in the collection.

Implements

Microsoft.Extensions.VectorData.VectorStore

Exceptions

ArgumentException:

Remarks

The OracleDynamicCollection instance is created for application to operate on a collection. However, the collection is not created in the database. To create a collection in the database, use OracleCollection.EnsureCollectionExistsAsync().

The provided collection name is treated as case-sensitive and should not be a fully qualified name(like .) as the Schema is referred based on the OracleVectorStoreOptions.

See Also: Microsoft.Extensions.VectorData.VectorStoreCollectionDefinition class.