mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-20 09:01:19 +00:00
feat: add boost directive to FeedEnhancement (#45)
* feat: add boost directive to FeedEnhancement Post-processors can now return a boost map (item ID -> score) to promote or demote items in the feed ordering. Scores from multiple processors are summed and clamped to [-1, 1]. Co-authored-by: Ona <no-reply@ona.com> * fix: correct misleading sort order comments Co-authored-by: Ona <no-reply@ona.com> --------- Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
@@ -15,6 +15,8 @@ export interface FeedEnhancement {
|
||||
groupedItems?: ItemGroup[]
|
||||
/** Item IDs to remove from the feed */
|
||||
suppress?: string[]
|
||||
/** Map of item ID to boost score (-1 to 1). Positive promotes, negative demotes. */
|
||||
boost?: Record<string, number>
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user