Skip to content

Commit

Permalink
more formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
elisno committed Feb 11, 2025
1 parent e9bd0c5 commit 3da2194
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cleanlab_codex/response_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ def prompt(
TLM = _TLMProtocol


DEFAULT_FALLBACK_ANSWER: str = "Based on the available information, I cannot provide a complete answer to this question."
DEFAULT_FALLBACK_ANSWER: str = (
"Based on the available information, I cannot provide a complete answer to this question."
)
DEFAULT_FALLBACK_SIMILARITY_THRESHOLD: int = 70
DEFAULT_TRUSTWORTHINESS_THRESHOLD: float = 0.5

Expand Down Expand Up @@ -100,6 +102,7 @@ def apply_defaults(cls, config: Optional[BadResponseDetectionConfig] = None) ->
default_cfg = cls.get_default_config()
return {**default_cfg, **(config or {})}


def is_bad_response(
response: str,
*,
Expand Down

0 comments on commit 3da2194

Please sign in to comment.