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

  • collectionName

    Name of the collection to retrieve.

  • definition

    The schema of the record type.

Return Value

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

Implements

Microsoft.Extensions.VectorData.VectorStore

Exceptions

ArgumentException:
  • The provided collectionName parameter is null, an empty string or contains white spaces only.
  • The provided collectionName is not compliant with Oracle name standard.

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.