Rerankings
BaseReranking ¶
Bases: BaseComponent
Source code in libs/kotaemon/kotaemon/rerankings/base.py
CohereReranking ¶
Bases: BaseReranking
Cohere Reranking model
Source code in libs/kotaemon/kotaemon/rerankings/cohere.py
run ¶
Use Cohere Reranker model to re-order documents with their relevance score
Source code in libs/kotaemon/kotaemon/rerankings/cohere.py
TeiFastReranking ¶
Bases: BaseReranking
Text Embeddings Inference (TEI) Reranking model (https://huggingface.co/docs/text-embeddings-inference/en/index)
Source code in libs/kotaemon/kotaemon/rerankings/tei_fast_rerank.py
run ¶
Use the deployed TEI rerankings service to re-order documents with their relevance score