Class VectorStoreService
- Namespace
- Oscova.Agents.Vector
- Assembly
- Oscova.Agents.dll
Wraps the SQLite vector store used by framework memory and retrieval features.
public sealed class VectorStoreService : IAsyncDisposableInheritance
Implements
Inherited Members
Constructors
- VectorStoreService(string, string)
-
Creates a vector store using the connection policy supplied by its owner.
Methods
- CollectionExistsAsync(string, CancellationToken)
-
Checks for a backing collection without creating it.
- DeleteAsync<TKey, TRecord>(string, TKey, VectorStoreCollectionDefinition?)
-
Deletes one record from a vector collection.
- DeleteCollectionAsync<TKey, TRecord>(string, VectorStoreCollectionDefinition)
-
Deletes a vector collection if it exists.
- DeleteWhereAsync<TKey, TRecord>(string, Expression<Func<TRecord, bool>>, Func<TRecord, TKey>, VectorStoreCollectionDefinition?, CancellationToken)
-
Deletes every record matching a filter in bounded batches.
- DisposeAsync()
-
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
- GetCollectionAsync<TKey, TRecord>(string, VectorStoreCollectionDefinition?)
-
Gets or creates a typed vector collection.
- SearchAsync<TKey, TRecord>(string, Embedding<float>, int, VectorSearchOptions<TRecord>?, VectorStoreCollectionDefinition?)
-
Searches a vector collection for records nearest to an embedding.
- UpdateBatchAsync<TKey, TRecord>(string, IEnumerable<TRecord>, VectorStoreCollectionDefinition?)
-
Upserts a batch of records into a vector collection.