Skip to content

Commit

Permalink
Merge pull request #33 from KruxAI/EnsembleRetriever
Browse files Browse the repository at this point in the history
EnsembleRetriever Update
  • Loading branch information
ashwinzyx authored Sep 8, 2024
2 parents 28d86e3 + 553cb32 commit c91631b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ragbuilder/langchain_module/rag/getCode.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from langchain import hub
from langchain_core.output_parsers import StrOutputParser
from langchain_core.runnables import RunnablePassthrough, RunnableParallel, RunnableLambda
from langchain.retrievers import MergerRetriever
from langchain.retrievers import MergerRetriever,EnsembleRetriever
from langchain.retrievers.document_compressors import DocumentCompressorPipeline
"""
def codeGen(**kwargs):
Expand Down Expand Up @@ -75,7 +75,7 @@ def codeGen(**kwargs):
code_strings.append(retriever['code_string'])
code_strings.append("retrievers.append(retriever)")
imports.append(retriever['import_string'])
code_strings.append('retriever=MergerRetriever(retrievers=retrievers)')
code_strings.append('retriever=EnsembleRetriever(retrievers=retrievers)')
else:
retriever = getRetriever(**kwargs)
code_strings.append(retriever['code_string'])
Expand Down

0 comments on commit c91631b

Please sign in to comment.