Reranker re-scores search results using a reranking model
| 16 | |
| 17 | // Reranker re-scores search results using a reranking model |
| 18 | type Reranker interface { |
| 19 | // Rerank re-scores the given search results and returns them sorted by new scores |
| 20 | Rerank(ctx context.Context, query string, results []database.SearchResult) ([]database.SearchResult, error) |
| 21 | } |
| 22 | |
| 23 | // NOTE: The Reranker interface doesn't expose criteria directly - it's configured |
| 24 | // during construction via Config and passed through to the underlying provider. |
no outgoing calls
no test coverage detected