-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incomplete news summary #19
Comments
@MstMoonshine It's done on purpose - an ellipsis means the summary is truncated to 400 characters. Sometimes, OpenAI just returns a long text, making it barely a summary. So I add a soft limit in the prompt and a hard limit in the rendered HTML to keep the page clean. |
I see in news.py you make GPT to summarize the content in 2 sentences. Is that the soft limit you mentioned? What about changing the prompt to something like “summarize the content within 200 words.” ? |
Right, it seems LLM doesnot follow length instruction precisely. I have tried prompt like "xx words / xx characters", and found "2 sentences" is the closest one to my length limitation. Or do you have any working experience on how to hard limit the length in the prompt? |
I don't really think there is a way to hard limit GPT's output. |
@MstMoonshine Hi, just added a simple and quick solution - full summary can be seen from the tooltips, if it's truncated on the page. Hope it helps. |
That certainly helps! But that leads to another problem. I use an RSS reader for your website. The RSS reader preview shows the truncated version. So if I want to read the full version, I have to go for the webpage. That is fine. But the problem is, there is currently no link to your page in the RSS feed! (Currently, there is one link for the news website and another for the HN comment) Consider adding a link to the RSS feed, which links to the corresponding summary paragraph. That definitely helps! |
Great. The project's been a useful daily tool already. |
For some news, the summary is not shown completely, and there is no link provided to check out the full summary. Is it that the summary does end with an ellipsis or that the summary is not rendered correctly?
Example:
The text was updated successfully, but these errors were encountered: