Show HN: BBC “In Our Time”, categorised by Dewey Decimal, heavy lifting by GPT (opens in a new tab)genmon.github.io
688 pointsIn Our Time has almost 1,000 episodes on everything from Cleopatra to the evolution of teeth to plasma physics, all still available, so it's my starting point to learn about most topics. But it's not well organised.
So here are the episodes sorted by library code. It's fun to explore.
Web scraping is usually pretty tedious, but I found that I could send the minimised HTML to GPT-3 and get (almost) perfect JSON back: the prompt includes the Typescript definition.
At the same time I asked for a Dewey classification... and it worked. So I replaced a few days of fiddly work with 3 cents per inference and an overnight data run.
My takeaway is that I'll be using LLMs as function call way more in the future. This isn't "generative" AI, more "programmatic" AI perhaps?
So I'm interested in what temperature=0 LLM usage looks like (you want it to be pretty deterministic), at scale, and what a language that treats that as a first-class concept might look like.
Comments (171) 49 threads
Earlier commentsI went to https://genmon.github.io/braggoscope/guests and opened the Firefox DevTools console and ran this:
Then this: The top few were:(btw thanks for datasette. I use SQLite as an intermediary db and datasette was invaluable for exploring and refining queries.)
However, Melvyn is an "interesting" catalyst but still great to fall asleep to. Long may it continue.
I believe there is sister program with a younger female presenter. Name escapes me...
Could you share the prompt? Or, if OP can't share, does anyone have ideas for a prompt to do something like this?
OP’s other write up:
https://interconnected.org/home/2023/02/07/braggoscope
Then convert that to Markdown, which GPT groks happily, and it preserves the right balance of discarding meaningless structure but preserving some semantics (italics, headings, etc).
The best tool I've found for that process is aaronsw's html2text, amazing that it's still so valuable after all these years.
https://news.ycombinator.com/item?id=35073824
(The worst I've noticed before has been Lawrence of Arabia under History of the Ancient World. Very much 20th century really.)
Several other classifications are arguable -- which I think shows one of the limitations of this technique: it's not possible to iterate + improve.
So instead I've been wondering about using the embeddings of each episode synopsis, and comparing to the embeddings of Dewey subdivisions. I should be able to tune the results better that way.
There's also a technique from Google called CAVs (Concept Activation Vectors) that I'm intrigued about trying -- would love to hear if anybody has experience using this
https://arxiv.org/abs/1711.11279
this says you need an API key but I think I found some way to call this without one… You might be able to improve classification by either incorporating the dewey decimals of the books mentioned on a podcast or fine-tuning a model based on known book titles (or maybe there are book summaries somewhere) to known dewey decimals from OCLC.
May I ask - how do you know exactly?
Which is not to knock what you're doing - because overall the performance does seem to be quite impressive (especially considering the effort invested).Specifically - with what level of accuracy? And how is it assessed?
At first glance it does seem to be highly accurate - except where it isn't:
Still - there's that "last mile".
So it would be nice to now how the performance compares to that other topic modeling approaches. And to what extent LLMs actually provide a boost.
All comments shown.
Couldn't load more comments. Check your connection and try again.