VectorMemoryImpl
@daydreamsai/core / VectorMemoryImpl
Class: VectorMemoryImpl
Defined in: packages/core/src/memory/vector-memory.ts:3
Vector Memory interface
Implements
Constructors
Constructor
new VectorMemoryImpl(
provider):VectorMemoryImpl
Defined in: packages/core/src/memory/vector-memory.ts:4
Parameters
provider
Returns
VectorMemoryImpl
Methods
delete()
delete(
ids):Promise<void>
Defined in: packages/core/src/memory/vector-memory.ts:14
Parameters
ids
string[]
Returns
Promise<void>
Implementation of
index()
index(
documents):Promise<void>
Defined in: packages/core/src/memory/vector-memory.ts:6
Parameters
documents
Returns
Promise<void>
Implementation of
search()
search(
query):Promise<VectorResult[]>
Defined in: packages/core/src/memory/vector-memory.ts:10
Parameters
query
Returns
Promise<VectorResult[]>