Skip to content

Commit

Permalink
fix: bug in OpenAIJudge.extract_prompt_parts
Browse files Browse the repository at this point in the history
  • Loading branch information
soumik12345 committed Oct 31, 2024
1 parent 8a83d8a commit 9a6b3bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hemm/metrics/vqa/judges/mmllm_judges/openai_judge.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ def extract_prompt_parts(self, prompt: str) -> List[TaggedPromptParts]:
adjective = adjective.replace("the ", "")
adjective = adjective.replace("a ", "")
adjective = adjective.replace("an ", "")
tagged_prompt_parts.append(
TaggedPromptParts(entity=chunk_np, noun=noun, adjective=adjective)
)
break
tagged_prompt_parts.append(
TaggedPromptParts(entity=chunk_np, noun=noun, adjective=adjective)
)
return tagged_prompt_parts

@weave.op()
Expand Down

0 comments on commit 9a6b3bf

Please sign in to comment.