Building AI Pipelines with LlamaIndex
Intermediate · 45 minutes · 100 points
In this hands-on lab, you will build foundational AI pipelines using LlamaIndex, a powerful data framework for connecting custom data sources to large language models. You will install and configure LlamaIndex, create document indexes, build query engines, and construct a multi-step RAG (Retrieval-Augmented Generation) pipeline using local embeddings and a mock LLM — no API keys required.
What you’ll learn
- Install and verify LlamaIndex and its core dependencies in a Python environment
- Create and persist a vector index from custom text documents using local HuggingFace embeddings
- Build a query engine and execute semantic search queries over the indexed documents
- Construct a multi-step ingestion pipeline using LlamaIndex transformations and node parsers
- Serialize and reload an index from disk to simulate a production-ready RAG pipeline
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: python:3.12-slim
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- At least 4GB of free disk space for model downloads
- Internet connection for package installation
Topics: llamaindex, rag, vector-index, embeddings, ai-pipeline, python, nlp, huggingface, retrieval-augmented-generation
Create a free account to start this lab.