GetCollection(string, VectorStoreCollectionDefinition?)

This method creates a vector store collection using its name.

Declaration

// C#
public VectorStoreCollection<TKey, TRecord> GetCollection(string collectionName, VectorStoreCollectionDefinition? definition = null)where TKey : notnullwhere TRecord : notnull

Parameters

Return Value

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

Implements

Microsoft.Extensions.VectorData.VectorStore

Exceptions

ArgumentException:

Remarks

To successfully request a collection, either must be annotated with attributes that define the schema of the record type, or must be provided.

The OracleCollection 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().

See Also: Microsoft.Extensions.VectorData.VectorStoreKeyAttribute, VectorStoreDataAttribute, VectorStoreVectorAttribute classes.