DVInMemoryVectorAdapter class

The reference adapter: exact cosine search in memory.

For development and tests. Deliberately not a vector store to deploy — the specification leaves those to pgvector and the search services, since a hand-rolled index would be the slowest and least-tested part of the framework.

Implemented types

Constructors

DVInMemoryVectorAdapter({bool canFilter = true})

Properties

canFilter → bool
Whether nearest applies its filter before ranking.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dropIndex(String index) → Future<void>
override
nearest(String index, List<double> vector, {required int k, DVVectorFilter? filter}) → Future<List<DVVectorMatch>>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readMeta(String key) → Future<String?>
Small durable values the index keeps about itself: which generation is active, which records a backfill has done, which job carried which record.
override
removeRecord(String index, String recordId) → Future<void>
override
toString() → String
A string representation of this object.
inherited
upsert(String index, List<DVVectorEntry> entries) → Future<void>
Stores a record's chunks, replacing any it had.
override
writeMeta(String key, String? value) → Future<void>
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited