RetrievalPolicy
@daydreamsai/core / RetrievalPolicy
Type Alias: RetrievalPolicy
RetrievalPolicy =
object
Defined in: packages/core/src/types.ts:1202
Configuration settings for a context
Properties
dedupeBy?
optionaldedupeBy:"id"|"docId"|"none"
Defined in: packages/core/src/types.ts:1207
groupBy?
optionalgroupBy:"docId"|"source"|"none"
Defined in: packages/core/src/types.ts:1206
include?
optionalinclude:object
Defined in: packages/core/src/types.ts:1205
content?
optionalcontent:boolean
diagnostics?
optionaldiagnostics:boolean
metadata?
optionalmetadata:boolean
minScore?
optionalminScore:number
Defined in: packages/core/src/types.ts:1204
namespaces?
optionalnamespaces:string[]
Defined in: packages/core/src/types.ts:1211
Ordered list of namespaces to search (e.g., [episodes:${ctx.id}, 'org', 'global']).
scope?
optionalscope:"context"|"global"|"all"
Defined in: packages/core/src/types.ts:1209
topK?
optionaltopK:number
Defined in: packages/core/src/types.ts:1203
weighting?
optionalweighting:object
Defined in: packages/core/src/types.ts:1208
recencyHalfLifeMs?
optionalrecencyHalfLifeMs:number
salience?
optionalsalience:number