Skip to Content
Anuma SDKReactInternalFunctionspreEmbedVaultMemories

preEmbedVaultMemories

preEmbedVaultMemories(vaultCtx: VaultMemoryOperationsContext, embeddingOptions: MemoryEngineEmbeddingOptions, cache: VaultEmbeddingCache, options?: object): Promise<void>

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

Pre-embed all vault memories that are not yet in the cache. Call this at init time so searches are instant.

Parameters

ParameterType

vaultCtx

VaultMemoryOperationsContext

embeddingOptions

MemoryEngineEmbeddingOptions

cache

VaultEmbeddingCache

options?

object

options.scopes?

string[]

Returns

Promise<void>

Last updated on