Skip to content

Commit

Permalink
Fix OpenAI cross-encoder prompt (#213)
Browse files Browse the repository at this point in the history
* fix

* format
  • Loading branch information
prasmussen15 authored Nov 12, 2024
1 parent be52a0f commit 471741c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphiti_core/cross_encoder/openai_reranker_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ async def rank(self, query: str, passages: list[str]) -> list[tuple[str, float]]
content=f"""
Respond with "True" if PASSAGE is relevant to QUERY and "False" otherwise.
<PASSAGE>
{query}
</PASSAGE>
{passage}
</PASSAGE>
<QUERY>
{query}
</QUERY>
""",
),
Expand Down

0 comments on commit 471741c

Please sign in to comment.