Skip to Content
Anuma SDKReactInternalFunctionsgetVaultEmbeddingsByIdsOp

getVaultEmbeddingsByIdsOp

getVaultEmbeddingsByIdsOp(ctx: VaultMemoryOperationsContext, ids: string[], options?: object): Promise<object[]>

Defined in: src/lib/db/memoryVault/operations.ts:982 

Column-projected embedding lookup for a KNOWN set of ids — id + embedding + embedding_model, NO content. Used to backfill cache-miss vectors during ranking without paying the content-decrypt cost. Mirrors getVaultCandidateKeysOp’s dual-path shape: a projected SELECT on OPFS-SQLite, falling back to the standard Q query + unsafeFetchRaw on LokiJS (Q.unsafeSqlQuery throws there).

Parameters

ParameterTypeDescription

ctx

VaultMemoryOperationsContext

‐

ids

string[]

‐

options?

object

Must match whatever admitted these ids. The caller has already filtered the candidate set; re-applying a DEFAULT-ON exclusion here silently deletes rows it deliberately admitted — which is how archived rows passed the key scan and then vanished at hydration (#779).

options.includeArchived?

boolean

‐

Returns

Promise<object[]>

Last updated on