VectorProvider
@daydreamsai/core / VectorProvider
Interface: VectorProvider
Defined in: packages/core/src/memory/types.ts:115
Vector storage provider
Extends
Methods
close()
close():
Promise<void>
Defined in: packages/core/src/memory/types.ts:78
Returns
Promise<void>
Inherited from
count()
count(
namespace?):Promise<number>
Defined in: packages/core/src/memory/types.ts:120
Parameters
namespace?
string
Returns
Promise<number>
delete()
delete(
ids):Promise<void>
Defined in: packages/core/src/memory/types.ts:118
Parameters
ids
string[]
Returns
Promise<void>
health()
health():
Promise<HealthStatus>
Defined in: packages/core/src/memory/types.ts:79
Returns
Promise<HealthStatus>
Inherited from
index()
index(
documents):Promise<void>
Defined in: packages/core/src/memory/types.ts:116
Parameters
documents
Returns
Promise<void>
initialize()
initialize():
Promise<void>
Defined in: packages/core/src/memory/types.ts:77
Returns
Promise<void>
Inherited from
search()
search(
query):Promise<VectorResult[]>
Defined in: packages/core/src/memory/types.ts:117
Parameters
query
Returns
Promise<VectorResult[]>
update()
update(
id,updates):Promise<void>
Defined in: packages/core/src/memory/types.ts:119
Parameters
id
string
updates
Partial<VectorDocument>
Returns
Promise<void>