Skip to content

Commit

Permalink
refactor: bump summary limits
Browse files Browse the repository at this point in the history
because some summaries get truncated
  • Loading branch information
engineervix committed Jul 10, 2024
1 parent cb9752e commit 0c33424
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/core/summarization/backends/together.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def summarize(content: str, title: str) -> str:
prompt = f"You are a distinguished news editor and content publisher, your task is to summarize the following news entry. The summary should accurately reflect the main message and arguments presented in the original news entry, while also being concise and easy to understand. Your summary should not exceed two sentences.\n\n ```{content}```:"
model = "garage-bAInd/Platypus2-70B-instruct"
temperature = 0.7
max_tokens = 128
max_tokens = 192

response = client.completions.create(
prompt=prompt,
Expand All @@ -42,7 +42,7 @@ def brief_summary(content: str, title: str) -> str:
prompt = f"You are a distinguished news editor and content publisher, your task is to summarize the following news entry in one sentence.\n\n ```{content}```:"
model = "garage-bAInd/Platypus2-70B-instruct"
temperature = 0.7
max_tokens = 78
max_tokens = 96

response = client.completions.create(
prompt=prompt,
Expand Down

0 comments on commit 0c33424

Please sign in to comment.