diff --git a/docs/examples/fact-checker-cli/fact_checker.py b/docs/examples/fact-checker-cli/fact_checker.py index 4479d17..12b5694 100755 --- a/docs/examples/fact-checker-cli/fact_checker.py +++ b/docs/examples/fact-checker-cli/fact_checker.py @@ -98,12 +98,14 @@ def _load_system_prompt(self, prompt_file: str) -> str: print(f"Warning: Prompt file not found at {prompt_file}", file=sys.stderr) except Exception as e: print(f"Warning: Could not load system prompt from {prompt_file}: {e}", file=sys.stderr) - print("Using default system prompt.", file=sys.stderr) - return ( - "You are a professional fact-checker with extensive research capabilities. " - "Your task is to evaluate claims or articles for factual accuracy. " - "Focus on identifying false, misleading, or unsubstantiated claims." - ) + + # Fallback default prompt if file loading fails + print("Using default system prompt.", file=sys.stderr) + return ( + "You are a professional fact-checker with extensive research capabilities. " + "Your task is to evaluate claims or articles for factual accuracy. " + "Focus on identifying false, misleading, or unsubstantiated claims." + ) def check_claim(self, text: str, model: str = DEFAULT_MODEL, use_structured_output: bool = False) -> Dict[str, Any]: """