Skip to content

Commit

Permalink
fix: Add logprobs to generator generate method in SelfRAGPipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ignorejjj committed Nov 22, 2024
1 parent 2bf75ee commit 8578980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flashrag/pipeline/active_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def run_single_beam(self, prompt, item_retrieval_result=None):
else:
aug_prompts = [prompt + prev_generation]

item_pred = self.generator.generate(aug_prompts, return_raw_output=True)
item_pred = self.generator.generate(aug_prompts, return_raw_output=True, logprobs=5)
_, preds, scores, overall_score_dict = self.critic_preds(item_pred)

for i, (pred, p_score) in enumerate(zip(preds, scores)):
Expand Down

0 comments on commit 8578980

Please sign in to comment.