ObservableVectorStore class final
Traces, logs and publishes events around every operation.
final store = ObservableVectorStore(QdrantVectorStore(...));
- Inheritance
-
- Object
- DelegatingVectorStore
- ObservableVectorStore
- Available extensions
Constructors
- ObservableVectorStore(VectorStore inner)
-
Wraps
innerwith instrumentation.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- info → VectorStoreInfo
-
What this store is.
no setterinherited
- inner → VectorStore
-
The wrapped store.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkDimensions(
List< VectorRecord> records) → void -
Available on VectorStore, provided by the VectorStoreOperations extension
Validatesrecordsagainst this store's dimensions. -
checkNamespace(
String? namespace) → void -
Available on VectorStore, provided by the VectorStoreOperations extension
Validatesnamespaceagainst this store's capabilities. -
clear(
{String? namespace}) → Future< void> -
Removes everything in
namespace, or everywhere when it isnull.inherited -
count(
{String? namespace, MetadataFilter? filter}) → Future< int> -
How many records are stored, optionally restricted by
filter.inherited -
delete(
Iterable< String> ids, {String? namespace}) → Future<int> -
Removes the records with
ids, returning how many existed.inherited -
deleteOne(
String id, {String? namespace}) → Future< bool> -
Available on VectorStore, provided by the VectorStoreOperations extension
Removes one record, returning whether it existed. -
deleteWhere(
MetadataFilter filter, {String? namespace}) → Future< int> -
Removes every record matching
filter, returning how many were removed.inherited -
dispose(
) → Future< void> -
Releases every resource held by this object.
inherited
-
exists(
String id, {String? namespace}) → Future< bool> -
Available on VectorStore, provided by the VectorStoreOperations extension
Whether a record withidexists. -
get(
String id, {String? namespace}) → Future< VectorRecord?> -
Returns the record with
id, ornull.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
search(
VectorQuery query, {String? namespace, AgenticContext? context}) → Future< List< VectorMatch> > -
Returns the records nearest to
query.override -
searchVector(
List< double> vector, {int topK = 8, MetadataFilter? filter, double minScore = 0, bool includeVectors = false, String? namespace, AgenticContext? context}) → Future<List< VectorMatch> > -
Available on VectorStore, provided by the VectorStoreOperations extension
Searches with a rawvector. -
toString(
) → String -
A string representation of this object.
override
-
upsert(
List< VectorRecord> records, {String? namespace, AgenticContext? context}) → Future<void> -
Inserts or replaces
records.override -
upsertAll(
Iterable< VectorRecord> records, {String? namespace, AgenticContext? context}) → Future<int> -
Available on VectorStore, provided by the VectorStoreOperations extension
Upsertsrecordsin batches of VectorStoreInfo.maxUpsertBatch. -
upsertOne(
VectorRecord record, {String? namespace, AgenticContext? context}) → Future< void> -
Available on VectorStore, provided by the VectorStoreOperations extension
Upserts a single record.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited