Lurker News
I'm a big fan of the BBC podcast In Our Time -- and (like most people) I've been playing with the OpenAI APIs.

In 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

Show all comments

Showing thread 2 of 49

genmon6 replies#
Some unlinked features...

If you put the Dewey division in the URL, the directory auto-opens. e.g. here are episodes about prehistoric life (my current jumping-off point)
https://genmon.github.io/braggoscope/directory#560
There's a visual map of episodes. After principal component analysis of the episode embedding vectors, these are the most significant two components as the x,y
https://genmon.github.io/braggoscope/map.html
(it's not super useful tbh -- e.g. the Manhattan Project and the Cambrian Explosion have the same x,y... presumably because they are both about explosions?)
Many episodes have a reading list, and these are all linked to Google Books (so you can purchase/check out from a library), e.g. this episode page
https://genmon.github.io/braggoscope/2022/10/20/the-fishtetr...
There are ~4,600 books, and I have ~88% coverage on getting a Google Books page from the original data. Any ideas about what to do with this big list of academic-recommended books v welcome!

CrypticShift1 reply#
Excellent! I'd love to see a script that sends a list of "descriptions" (1-100 words) to ChatGPT and directly gives you back a ready-made (embedding vectors closeness) map in a (textual) graph/chart format (like your above map or your plot https://interconnected.org/more/2023/02/in_our_time-PCA-plot...)
genmon4 replies#
It turns out that "closeness" is usually hard to visualise/explore when you're dealing with a 1,000-dimensional space... and PCA has the failures mentioned above.

It's weird -- it's locally useful to navigate, and at a high level kinda useful, but only if you squint and don't look at the problems. So I feel like a fisheye visualisation would be appropriate? That's something that I'm exploring in other projects.

gwern1 reply#
I wouldn't necessarily reach for PCA. No reason to think that the first two principal components necessarily encode anything particularly interesting. If you want to lay out each point in 2D in a way which keeps similar points nearby, something like t-SNE is worth a try - visualizing embeddings is what it was invented for.

Continue this thread — 1 reply

nl#
TSNE or UMAP (as others have mentioned) is good but also take a look at the tensorflow projector. You can host your own and/or pass custom data to it.
PeterisP#
The word game of 'semantle' (https://semantle.com/) is a nice way to get an intuitive grasp of how unintuitive the closeness in a highdimensional space is, as you're required to guess a word based on it's semantic similarity (according to classic word2vec metric) to your previous guesses.
p0pcult1 reply#
Love the visual map. What does color mean? Any way to do a 3rd PC, and put the visualization in a cube one can toy around with?
genmon1 reply#
Colour is the 3rd component -- I wanted to see the difference between overlapping episodes.

As for the 3D plot... here you go!
https://interconnected.org/more/2023/03/in_our_time-PCA-3D-p...
Basic PCA + Plotly is actually in OpenAI's official Python library (in `embedding_utils`) -- this plot is just the output from that.

p0pcult#
:D this made my day.
sacrosancty#
Your PCA is awesome. The horizontal axis seem to go from people (high level nature?) on the left to physics (low level nature?) on the right, while the vertical axis seems to go from individuals and particles (small things?) at the bottom, up to civilizations and the universe (big things?) at the top. Maybe the Manhattan Project and Cambrian Period (not explosion) are together because they're both big things in their fields and physics and evolution are near each other horizontally?
flir1 reply#
This is great. I'll certainly be thinking of "classification" uses for ChatGPT in the future.

Thinking out loud: Add the experts, not just the reading lists. They're a jumping-off point into academic-paper-space. What have they published? In what journals? Who have they collaborated with?

fnordpiglet4 replies#
Here’s a powerful use - content moderation. Today we literally traumatize content moderators with the dregs of the human mind. Chatgpt is fairly good at identifying the classification of content on many dimensions, including the ones it’s actively screens for. Regardless of how you personally feel about content moderation, I would be happy to see humans not have to be actively involved in it and face the traumas they must live with for where the moderation happens. I’m sure it’ll get things wrong, but humans do too.
chezelenkoooo#
I'm sure I remember Zuckerberg talking about this very thing in one of the Congress interviews he had.

I don't disagree with you, the content producers are always going to outnumber the moderators by a massive margin. It makes reasonable moderation very difficult.

nl#
OpenAI have a content moderation endpoint for this too.

Continue this thread — 1 reply

amiga3861 reply#
Automating your moderation policies is a cop-out. It isolates you even further from the peons whose lives you're controlling.

European humans have the right for any automated decision affecting them to be reviewed by a human. We do not want a world where a tiny handful of people, getting fewer by the day if it's Twitter, have untrammeled control over what billions of people can say, see or do. We can't let businesses do what they like, change their policies on a whim and have it instantaneously applied by automatons, if it's bringing misery to millions of people.
Remember those old-fashioned things called laws? Courts? Judges? Legislators? The things we used to use for deciding what people could/couldn't do, before tiny companies with billions of users applied their own de-facto laws with no oversight, governance or accountability. Move fast and break things!

Continue this thread — 1 reply

Tarq0n#
Love the plot, for high dimensional embeddings try UMAP for a better result, maybe T-sne too if you're interested in clusters.