Reranker is disigned in cross-encoder architecture that takes the query and text at the same time and directly output their score of similarity.
ollama