internalsGet Pro

Module 06 · Lesson 10 of 11Pro

Data pipelines for AI: documents, embeddings and LLMs

Level
Intermediate
Topic
Data pipelines: ETL and ELT
Reading time
17 min

When you finish this page you can

  1. Detect which documents and chunks really changed, so a pipeline sends only new text to the embedding model.
  2. Store vectors keyed by a content hash and the model that made them, so reruns and crashes cost nothing extra.
  3. Remove the vectors of deleted documents, and keep LLM steps from changing text on every run.
  4. Plan a switch to a new embedding model as a second index, with its cost, time and storage worked out.

Builds on 3 lessons

Start with lesson 416 min
  1. Idempotent pipelines: safe to run twice16 min
  2. Incremental loads with watermarks17 min
  3. Embedding models: choosing and comparing them16 min

A nightly job that needs 13 hours

is an online store in India. A year after the earlier modules, it sells 20 million products from 50,000 sellers. Meera, a data engineer on Kartly’s data team, feeds three kinds of documents to Kartly’s AI features: product descriptions, sellers’ return and shipping policy pages, and about 4,000 help-centre articles. Product search uses them to find items by meaning, and the support chatbot quotes the policies and articles.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan