embedAllMessages
embedAllMessages(
ctx:StorageOperationsContext,options:MemoryEngineEmbeddingOptions,filter?:object):Promise<number>
Defined in: src/lib/memoryEngine/embeddings.ts:128
Embed all messages without embeddings in the database
Parameters
| Parameter | Type | Description |
|---|---|---|
|
|
Storage operations context | |
|
|
Embedding options | |
|
|
|
Optional filter for which messages to embed |
|
|
|
Only embed messages from this conversation |
|
|
|
Minimum content length to embed (default: 30). Shorter messages are skipped. |
|
|
|
Re-index rows the ciphertext sweep marked CHUNKS_DISCARDED_ORIGIN.
Off by default: this spends the user’s own embedding credits, so it belongs
to an explicit user action, never to a background pass. Opens that marker
only — A successful repair clears the marker. Later model migrations include the repaired row without this flag. See CHUNKS_DISCARDED_ORIGIN. |
|
|
( |
Only embed messages with these roles |
Returns
Promise<number>
Number of messages embedded