Skip to content

Commit

Permalink
Feature/fix hyde pipeline (#344)
Browse files Browse the repository at this point in the history
* filter logs

* cleanup

* fix hyde pipeline
  • Loading branch information
emrgnt-cmplxty authored May 1, 2024
1 parent c79a0b4 commit 2b73935
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions r2r/pipelines/hyde/rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def run(
{"answers": answers},
)

context = self._construct_joined_context(search_results_tuple, message)
context = self._construct_joined_context(search_results_tuple)
prompt = self.construct_prompt({"query": message, "context": context})

if not generation_config.stream:
Expand Down Expand Up @@ -222,7 +222,7 @@ def run_stream(
]

return self._return_stream(
search_results, context, prompt, generation_config
search_results, context, prompt, generation_config, metadata={"answers": answers},
)

def _construct_joined_context(
Expand Down

0 comments on commit 2b73935

Please sign in to comment.