News for hackers. Stuff that matters.
Re:The Coming of Local LLMs by gamegoblin on Tuesday April 11, 2023 @04:32PM (#35531129)
Close, but it's a bit more specialized to just work on HN:

- Examples of unwanted content

- Then I give a large numbered list of comments and ask which numbers should be filtered

- The plugin then just deletes those comment nodes from the DOM. If HN ever updates their HTML I will have to tweak this code.

The reason to send a large list of comments is just to save on costs. It's cheaper to do it this way than one comment at a time.

So the main difference from what you've proposed is GPT never sees the HTML. My code enumerates the comments in the HTML and splices them in to the prompt in a nice numbered list, then does the reverse translation from list number to DOM element in the other direction.

Re:The Coming of Local LLMs by jpe90 on Tuesday April 11, 2023 @06:06PM (#35532241)
Oh that’s clever! Thanks for answering!