Skip to Content

ReflectOptions

Defined in: src/lib/memory/reflect.ts:43 

Extends

Properties

apiKey

apiKey: string

Defined in: src/lib/memory/reflect.ts:51 

Auth + endpoint for the answer LLM.


baseUrl?

optional baseUrl: string

Defined in: src/lib/memory/reflect.ts:52 


bm25AdmissionDivisor?

optional bm25AdmissionDivisor: number

Defined in: src/lib/memory/types.ts:143 

Divisor mapping BM25 scores to the admission floor. Default: 50.

Inherited from

RecallOptions.bm25AdmissionDivisor


budget?

optional budget: Budget

Defined in: src/lib/memory/types.ts:90 

Search depth. Default: ‘low’.

Inherited from

RecallOptions.budget


ceWeight?

optional ceWeight: number

Defined in: src/lib/memory/types.ts:129 

Multiplicative cross-encoder blend weight. Default: 0.1.

Inherited from

RecallOptions.ceWeight


conversationId?

optional conversationId: string

Defined in: src/lib/memory/types.ts:98 

Restrict chunk search to one conversation. Chunk-only.

Inherited from

RecallOptions.conversationId


decomposeOptions?

optional decomposeOptions: object

Defined in: src/lib/memory/types.ts:108 

Auth + endpoint for the LLM-based query decomposition pass. Without these, decompose is skipped even at budget: 'high'. Mirrors the shape used by searchVaultMemories.

apiKey

apiKey: string

baseUrl?

optional baseUrl: string

model?

optional model: string

Inherited from

RecallOptions.decomposeOptions


excludeConversationId?

optional excludeConversationId: string

Defined in: src/lib/memory/types.ts:100 

Exclude one conversation from chunk search. Chunk-only.

Inherited from

RecallOptions.excludeConversationId


fetchFn()?

optional fetchFn: {(input: RequestInfo | URL, init?: RequestInit): Promise<Response>; (input: string | Request | URL, init?: RequestInit): Promise<Response>; }

Defined in: src/lib/memory/reflect.ts:54 

Override fetch (for tests).

Call Signature

(input: RequestInfo | URL, init?: RequestInit): Promise<Response>

MDN Reference 

Parameters

ParameterType

input

RequestInfo | URL

init?

RequestInit

Returns

Promise<Response>

Call Signature

(input: string | Request | URL, init?: RequestInit): Promise<Response>

MDN Reference 

Parameters

ParameterType

input

string | Request | URL

init?

RequestInit

Returns

Promise<Response>


folderId?

optional folderId: string | null

Defined in: src/lib/memory/types.ts:96 

Vault folder filter. Vault-only.

Inherited from

RecallOptions.folderId


includeChunks?

optional includeChunks: boolean

Defined in: src/lib/memory/types.ts:92 

Include source chunks for fact memories that have provenance. Default: false.

Inherited from

RecallOptions.includeChunks


limit?

optional limit: number

Defined in: src/lib/memory/types.ts:86 

Max items returned. Default: 8.

Inherited from

RecallOptions.limit


llmModel?

optional llmModel: string

Defined in: src/lib/memory/reflect.ts:45 

Override the answer model. Default: anthropic/claude-sonnet-4-6.


maxTokens?

optional maxTokens: number

Defined in: src/lib/memory/reflect.ts:47 

Cap response length. Default: 4096.

Overrides

RecallOptions.maxTokens


minScore?

optional minScore: number

Defined in: src/lib/memory/types.ts:102 

Drop results below this score. Default: 0.1 for facts, 0.5 for chunks (mirrors today’s defaults).

Inherited from

RecallOptions.minScore


mmr?

optional mmr: boolean

Defined in: src/lib/memory/types.ts:135 

Apply MMR diversification after ranking (rerank pipeline only). Default: false.

Inherited from

RecallOptions.mmr


now?

optional now: number

Defined in: src/lib/memory/types.ts:120 

Reference “now” for resolving relative temporal phrases in the query (“last week”, “yesterday”, “N days ago”). Default: Date.now(). Override for back-dated evaluation harnesses (bench corpora dated 2021–2023) and for deterministic tests — otherwise the W6 lane resolves windows in 2026 and never overlaps stored event_time.

Inherited from

RecallOptions.now


proofCountAlpha?

optional proofCountAlpha: number

Defined in: src/lib/memory/types.ts:141 

Proof-count log-boost scale. Default: 0.1.

Inherited from

RecallOptions.proofCountAlpha


recency?

optional recency: RecencyOptions

Defined in: src/lib/memory/types.ts:133 

Recency decay curve overrides (per-year decay slope, floor, no-date multiplier).

Inherited from

RecallOptions.recency


recencyAlpha?

optional recencyAlpha: number

Defined in: src/lib/memory/types.ts:131 

Recency boost slope in the fused ranker. Default: 1.0.

Inherited from

RecallOptions.recencyAlpha


rerankTopN?

optional rerankTopN: number

Defined in: src/lib/memory/types.ts:127 

Number of candidates fed to the cross-encoder rerank stage. Default: 30.

Inherited from

RecallOptions.rerankTopN


responseSchema?

optional responseSchema: Record<string, unknown>

Defined in: src/lib/memory/reflect.ts:56 

Optional JSON Schema to coerce structured outputs.


rrfK?

optional rrfK: number

Defined in: src/lib/memory/types.ts:145 

RRF smoothing constant for lane fusion (facts × chunks and side lanes). Default: 60.

Inherited from

RecallOptions.rrfK


scopes?

optional scopes: string[]

Defined in: src/lib/memory/types.ts:94 

Vault scope filter. Vault-only.

Inherited from

RecallOptions.scopes


supersessionBoost?

optional supersessionBoost: number

Defined in: src/lib/memory/types.ts:137 

Supersession score-gap transfer factor. Default: 0.8.

Inherited from

RecallOptions.supersessionBoost


supersessionWindow?

optional supersessionWindow: number

Defined in: src/lib/memory/types.ts:139 

Hard cap on the supersession candidate window. Default: 50.

Inherited from

RecallOptions.supersessionWindow


systemPrompt?

optional systemPrompt: string

Defined in: src/lib/memory/reflect.ts:49 

Override the grounding system prompt.


types?

optional types: MemoryKind[]

Defined in: src/lib/memory/types.ts:84 

Which kinds to search. Default: [‘fact’].

Inherited from

RecallOptions.types

Last updated on