Skip to content

Commit

Permalink
Update pointwise.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnweiwei authored Jan 23, 2024
1 parent 44167f8 commit 3043216
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pointwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@


def relevance_generation(query, passage, instruction: str = ZERO_SHOT_EXAMPLE, model='gpt-3.5-turbo'):
if 'few-shot' in instruction:
instruction = FEW_SHOT_EXAMPLE
else:
instruction = ZERO_SHOT_EXAMPLE

prompt = f"{instruction}\nPassage: {passage}\nQuery: {query}\nDoes the passage answer the query?\nAnswer:"
if 'instruct' in model or 'text' in model or 'davinci' in model:
response = client.completions.create(
Expand Down

0 comments on commit 3043216

Please sign in to comment.