AxRankDocumentsOptions
Defined in: https://github.com/ax-llm/ax/blob/f60ce12a5a7a0de6d7bf420400ca77934ea61504/src/ax/agent/agentInternal/relevanceRanker.ts#L42
Properties
| Property | Type | Description |
|---|
marginRatio? | number | Discrimination guard. If every document scores within this ratio of the top, the ranker can’t discriminate and emits nothing. Default 0.15. |
minDocs? | number | Minimum catalog size to rank at all (a hint over a 1-item catalog is noise). Default 2. Explicit-search adapters pass 1 for best-effort mode. |
minScore? | number | Absolute floor on the top match’s idf-weighted query coverage (0..1). Below this the ranker emits nothing. Default 0.08. |
topK? | number | Max documents to return. Default 3. |