InMemoryVectorProvider
@daydreamsai/core / InMemoryVectorProvider
Class: InMemoryVectorProvider
Defined in: packages/core/src/memory/providers/in-memory.ts:147
In-memory Vector Provider for testing
Implements
Constructors
Constructor
new InMemoryVectorProvider():
InMemoryVectorProvider
Returns
InMemoryVectorProvider
Methods
close()
close():
Promise<void>
Defined in: packages/core/src/memory/providers/in-memory.ts:155
Returns
Promise<void>
Implementation of
count()
count(
namespace?):Promise<number>
Defined in: packages/core/src/memory/providers/in-memory.ts:267
Parameters
namespace?
string
Returns
Promise<number>
Implementation of
delete()
delete(
ids):Promise<void>
Defined in: packages/core/src/memory/providers/in-memory.ts:250
Parameters
ids
string[]
Returns
Promise<void>
Implementation of
health()
health():
Promise<HealthStatus>
Defined in: packages/core/src/memory/providers/in-memory.ts:160
Returns
Promise<HealthStatus>
Implementation of
index()
index(
documents):Promise<void>
Defined in: packages/core/src/memory/providers/in-memory.ts:171
Parameters
documents
Returns
Promise<void>
Implementation of
initialize()
initialize():
Promise<void>
Defined in: packages/core/src/memory/providers/in-memory.ts:151
Returns
Promise<void>
Implementation of
search()
search(
query):Promise<VectorResult[]>
Defined in: packages/core/src/memory/providers/in-memory.ts:179
Parameters
query
Returns
Promise<VectorResult[]>
Implementation of
update()
update(
id,updates):Promise<void>
Defined in: packages/core/src/memory/providers/in-memory.ts:258
Parameters
id
string
updates
Partial<VectorDocument>
Returns
Promise<void>