Ranking parameters¶
Query and body fields that control server/search.ts ranking and related API handlers.
SearchParams (compare / for-you)¶
Field |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
Search query; empty on For You |
|
|
(per request) |
Which score profile |
|
number |
|
Scales recency term (0 = off) |
|
boolean |
|
Enables spam/hashtag penalties |
|
number |
Route-specific |
Cap before |
|
boolean |
|
Live search only: append |
Server defaults (server/index.ts)¶
Route |
|
Clamp |
|---|---|---|
|
30 |
10–100 |
|
35 |
5–100 |
|
12 |
1–25 |
Compare endpoint¶
GET /api/compare
Param |
Notes |
|---|---|
|
Required for meaningful Explore results |
|
|
|
Corpus cap + ranker inputs |
Returns platform_style and refined arrays (field names match ComparePayload).
For You endpoint¶
GET /api/for-you
Param |
Notes |
|---|---|
|
|
Same slider fields |
From Ranking lab state |
Paths:
live — X home timeline (session required); query
xaiomittedxai —
xai=1; Grok batch + optionalxaiIngest→ Grok ingestsseed —
mock=1/ seed path —server/seed-tweets.json
Scoring reference¶
See Ranking system for overlap, phrase, recency, engagement, spam.
Pipetrix snapshot¶
On ingest, UI may pass rankingLab: { recencyWeight, strictMatch, maxResults } into canonical writes → stored in mixerMetaJson. See Ranking lab snapshot.