Skip to content

summerizer #836

Answered by Mattral
DavidMacha asked this question in Q&A
Nov 16, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Your code looks fine. One thing to consider is the specificity of your prompt. GPT models can be sensitive to the wording. Instead of a general prompt, you might try being more explicit, like "Summarize the key points from the following article."
have you experimented with the temperature parameter in your API call? It can influence the randomness of the generated text. Lower values like 0.2 might provide more focused and deterministic summaries.

Additionally, you might want to experiment with the max_tokens parameter more. Adjusting it to a smaller value could help in controlling the length of the generated summaries.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DavidMacha
Comment options

Answer selected by DavidMacha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants