AxRankDocumentsOptions
Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/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. |