AxRankDocumentsOptions Generated TypeScript API reference. typescript api api/reference build/apidocs/Interface.AxRankDocumentsOptions.md interface AxRankDocumentsOptions

AxRankDocumentsOptions

Defined in: https://github.com/ax-llm/ax/blob/3306475085414d36aee4411ad2466e08e53bef8a/src/ax/agent/agentInternal/relevanceRanker.ts#L42

Properties

PropertyTypeDescription
marginRatio?numberDiscrimination guard. If every document scores within this ratio of the top, the ranker can’t discriminate and emits nothing. Default 0.15.
minDocs?numberMinimum 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?numberAbsolute floor on the top match’s idf-weighted query coverage (0..1). Below this the ranker emits nothing. Default 0.08.
topK?numberMax documents to return. Default 3.
Docs