Skip to content

Commit

Permalink
Nit fix in rag_experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
mstfbl committed Jan 9, 2025
1 parent 6d6ffce commit b039e5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nomadic/experiment/rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def run_inference_pipeline(params_dict: Dict[str, Any]) -> RunResult:
"detailed_results": detailed_results,
"mean_score": mean_score,
}
if "enable_logging" in params_dict:
if params_dict.get("enable_logging"):
# Save inference results to a file
with open("inference_results.json", "w") as f:
json.dump(inference_results, f)
Expand Down

0 comments on commit b039e5b

Please sign in to comment.