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
collectionNameName of the collection to retrieve.
definitionThe 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
collectionNameparameter is null, an empty string or contains white spaces only. - The provided
collectionNameis 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.