add use_llm_ranker config

This commit is contained in:
seehi 2024-08-20 17:17:13 +08:00
parent 91358f7dca
commit cd764737c8

View file

@ -185,6 +185,7 @@ class ExperienceManager(BaseModel):
Returns:
list: A list of `LLMRankerConfig` instances or an empty list.
"""
from metagpt.rag.schema import LLMRankerConfig
return [LLMRankerConfig(top_n=DEFAULT_SIMILARITY_TOP_K)] if self.config.exp_pool.use_llm_ranker else []