Skip to Content

eagerEmbedContent

eagerEmbedContent(content: string, embeddingOptions: MemoryEngineEmbeddingOptions, cache: VaultEmbeddingCache, vaultCtx?: VaultMemoryOperationsContext, memoryId?: string): Promise<void>

Defined in: src/lib/memoryVault/searchTool.ts:269 

Eagerly embed a single piece of content and store it in the cache. Call this when a vault memory is created or updated.

Parameters

ParameterType

content

string

embeddingOptions

MemoryEngineEmbeddingOptions

cache

VaultEmbeddingCache

vaultCtx?

VaultMemoryOperationsContext

memoryId?

string

Returns

Promise<void>

Last updated on