Data and AI

7 parts, in order ยท 20 min

Data and AI

Every kind of database was built to do something the one before it couldn't. This series takes them in the order they arrived: the brief history first, then SQL and what relational means, then NoSQL, vector and graph databases, and finally how an AI that seems to remember you is using several of them at once.

Watch them in order. Each stands on its own, but the questions build.

Start the series →
  1. A frame from the video: a timeline with five marks, Count, Find, Ask anything, Spread out and Meaning, each with a small drawing above it, and the chips Vector and Graph beneath. 2:18
    Video Part 1

    Why databases were created

    A database is where records are kept so a computer can find them, and there isn't just one kind. Each was built to do what the one before couldn't. Five questions in the order they arrived, from counting a census to an AI that seems to remember you.

  2. A frame from the video: a Customers table and an Orders table side by side, a line joining an order to its customer, and the word Relational beneath. 2:55
    Video Part 2

    SQL explained

    A relational database keeps each fact once, in tables that refer to each other, with rules that keep it honest and a language, SQL, for asking it questions. What relational means, where a spreadsheet stops working, and why this design still runs the bank and the shop.

  3. A frame from the video: a key card labelled Customer 4172 turned into the number 8, a line to machine 8 in a grid of twelve, and dashed lines fanning out to every machine for a request without a key. 2:36
    Video Part 3

    NoSQL explained

    NoSQL databases were built for records that don't all share one shape, and for more people than one machine can serve. Documents in place of rows, thousands of machines in place of one, each record found by its key, and the choice between agreeing first and answering now.

  4. A frame from the video: a search box reading my card was declined abroad beside a map of faint dots, with the question as an orange dot and the three nearest pieces lit in teal. 2:30
    Video Part 4

    Vector databases explained

    A vector database finds text by what it means, not by the words in it, which is how an AI assistant answers from your documents with no training on them. Meaning as numbers, the nearest pieces found fast, and why a wrong piece found gives a wrong answer that sounds sure.

  5. A frame from the video: the heading Part-time staff only in orange above a dashed cut line, the rule Unused days can be carried over in a piece below it, and the caption Stored without its context. 3:19
    Video Part 5

    Chunking explained

    Before a document can be searched by meaning it is cut into pieces, and where the cuts fall decides whether the right answer is ever found. What goes wrong when pieces are too big, too small or cut in the wrong place, how to cut well, and the only way to know your cut is right.

  6. A frame from the video: a query pattern above a field of faint linked dots, with the chain from a new customer to an account closed for fraud traced in orange. 3:25
    Video Part 6

    Graph databases explained

    A graph database stores the links between things as data, so following a chain of connections is a step each time and not a search. How it differs from tables, where it earns its place, from fraud rings to knowledge graphs, and the limit that keeps it beside the other kinds.

  7. A frame from the video: Notes, Past chats and Links feed a Search box, which fills the Context beside Your message, and the Model reads it all. 3:01
    Video Part 7

    How AI memory works

    An AI chat that seems to remember you is keeping notes, past chats and sometimes a graph outside the model, and searching them before it answers. How each part works, and why it can still get you wrong.

Want a video on something?

Tell me what you're stuck on. I take requests, and the good ones end up in here.