mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
add use_llm_ranker config
This commit is contained in:
parent
91358f7dca
commit
cd764737c8
1 changed files with 1 additions and 0 deletions
|
|
@ -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 []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue