mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-10-09 03:20:54 +00:00
[dev] rename Reranker to ranker
This commit is contained in:
parent
d7b6e20777
commit
3e5ad8f652
2 changed files with 3 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ from memory_scope.models.base_model import BaseModel, MODEL_REGISTRY
|
|||
from memory_scope.models.model_response import ModelResponse
|
||||
|
||||
|
||||
class LlamaIndexRerankModel(BaseModel):
|
||||
class LlamaIndexRankModel(BaseModel):
|
||||
m_type: ModelEnum = ModelEnum.RANK_MODEL
|
||||
|
||||
MODEL_REGISTRY.register("dashscope_rank", DashScopeRerank)
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import json
|
||||
import unittest
|
||||
|
||||
from memory_scope.models.llama_index_rerank_model import LlamaIndexRerankModel
|
||||
from memory_scope.models.llama_index_rerank_model import LlamaIndexRankModel
|
||||
|
||||
|
||||
class TestLLIReRank(unittest.TestCase):
|
||||
|
|
@ -13,7 +13,7 @@ class TestLLIReRank(unittest.TestCase):
|
|||
"model_name": "gte-rerank",
|
||||
"clazz": "models.llama_index_rerank_model"
|
||||
}
|
||||
self.reranker = LlamaIndexRerankModel(**config)
|
||||
self.reranker = LlamaIndexRankModel(**config)
|
||||
|
||||
def test_rerank(self):
|
||||
query = "吃啥?"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue