VectorStore class abstract
Abstract interface for a Vector Database/Store used in RAG.
Can be implemented in-memory, or wrapped around specialized local DBs (ObjectBox, Isar) or remote DBs (Pinecone, Chroma).
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addDocuments(
List< AIDocument> documents) → Future<void> - Adds documents to the store. Implementation should compute embeddings if the document doesn't have them yet.
-
clear(
) → Future< void> - Deletes all documents in this store.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
similaritySearch(
String query, {int limit = 4}) → Future< List< AIDocument> > - Searches for the most similar documents to the given query.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited