LLMs

  • ai

I started using LLMs seriously at the end of 2022, right as ChatGPT came out, through OpenAI's API in the Companies Summary Generator. Since then they've been in most of what I build: the LLM layer of the learning platforms at DMOOD, the Wine Sommelier, the reviews in LoS. Two things shipping them taught me:

  • Retrieval beats the model. The answer is only as good as what's put in front of the model: in the Wine Sommelier, the similarity threshold and the rule-based score that pick the ten candidates; at Sifted, which pages of a company's site got scraped; in LoS, which numbers a review is given. A bad answer was rarely fixed by a bigger model, and usually by better input.
  • Small chained calls, not one giant prompt. A prompt asked to do everything makes more things up than a narrow one, and when it's wrong you can't tell which part failed. So the Wine Sommelier's first call only decides whether a request is specific enough to search on, and LoS writes the month's review from the weeks', not from a month of raw rows. Each step can be tested on its own.

Underneath both is the same caution: a fluent answer isn't a true one. "Coherence is in the eye of the beholder", as Bender et al. put it in "On the Dangers of Stochastic Parrots": we read sense into fluent text. That's why, in what I build, code computes the facts and the model only writes them up.