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

Earlier comments
EamonnMR1 reply#
In Our Time is one of the best podcasts out there. Are there any similar ones?
open-source-ux#
Similar to In Our Time is another BBC radio programme called The Forum (from BBC World Service) which explores world history, culture and ideas. Every week an eclectic topic is discussed with three experts in a lively, informative and stimulating discussion. Highly recommended:

https://www.bbc.co.uk/programmes/p004kln9/episodes/downloads

megablast#
> 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

What does this even mean?? You collected all the minimised html snippets then fed them to GPT-3?? How does this save any time??

maccaw#
Love it - also a huge fan of In our Time.

V2 would be:
- Transcribe through Whisper - Semantic search

PaulHoule2 replies#
What's the prompt?
valgaze#
From what I understand:

- Typescript definition (turn raw html markup >> well-formed JSON)
- Dewey Decimal classification/score
So probably combination of those two

genmon1 reply#
One of the prompts is

  Extract the description and a list of guests from the supplied episode notes from a podcast.

  Also provide a Dewey Decimal Classification code and label for the description

  Return valid JSON conforming to the following Typescript type definition:

  {
    "description": string,
    "guests": {"name": string, "affiliation": string | null}[]
    "dewey_decimal": {"code": string, "label": string},
  }

  Episode synopsis (Markdown):

  {notes}

  Valid JSON:
(And the completion tends to be JSON, but not always.)
lerchmo1 reply#
I like the typescript definition, rather than example json that I normally use.
genmon1 reply#
Credit where it's due: I was working with structured data as JSON for the completion, and the Typescript definition hugely increased reliability. I took that from helpful advice (on Twitter) from Noah Brier who afiak came up with the approach:

https://brxnd.substack.com/p/the-prompt-to-rule-all-prompts-...

Continue this thread — 1 reply

Load more comments