Skip to content

Commit

Permalink
修复一个潜在的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
deadwalks committed Sep 13, 2024
1 parent 9a88fa3 commit f6293a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/rag/retrievers.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def create_retriever(self):
# 如果开启了压缩检索器,就将ES检索器的权重调整为0.3
es_compressor = LLMChainExtractor.from_llm(llm=self.llm)
es_compression_retriever = ContextualCompressionRetrieverWrapper(
base_compressor=compressor, base_retriever=es_retriever
base_compressor=es_compressor, base_retriever=es_retriever
)
# 开启开关就使用压缩检索器
retrievers.append(es_compression_retriever)
Expand Down

0 comments on commit f6293a9

Please sign in to comment.