Skip to content
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

Add ChatGPT summary #27

Open
paskal opened this issue Jun 2, 2024 · 0 comments · May be fixed by #34
Open

Add ChatGPT summary #27

paskal opened this issue Jun 2, 2024 · 0 comments · May be fixed by #34
Assignees

Comments

@paskal
Copy link
Member

paskal commented Jun 2, 2024

ChatGPT is the new Bluetooth. Everything is better with it.

Prompt:

Please summarize the main points in a few sentences as TLDR style (don't add a TLDR label). Then, list up to five detailed bullet points. Provide the response in plain text. Do not add any additional information. Do not add a Summary at the beginning of the response. If detailed bullet points are too similar to the summary, don't include them at all. Finally, include a sentiment analysis of the text.

That should be a new endpoint secured like the frontend edit and add, which are now secured to prevent abuse.

The second idea is to create a "content parsed wrong" endpoint. When called, it will prompt ChatGPT to provide the correct selector, re-extract the content with this new selector, and then make a summary based on the newly extracted data.

Prompt:

Given this HTML body, identify the CSS selector that can be used to extract the main content of an article. This typically includes elements like 'article', 'main', or specific classes. Return only this selector and nothing else."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant