# RAG optimisation + Reranking Day 2 Lab

> In this lab, Zach focuses on re-ranking and working with an external worker process, which are crucial for optimizing the retrieval system. He implements metadata filtering and re-ranking to improve query results, ensuring that he accurately classifies document types and determines the optimal numb…

- Web page: https://www.dataexpert.io/lesson/rag-optimisation-reranking-day2-lab-oct2025-p737-l1574
- Program: [AIExpert](https://www.dataexpert.io/program/ai-expert)
- Module: Week 2: Advanced RAG, Reranking & Dev Workflow
- Access: Requires enrollment in AIExpert
- Length: 1 h 18 min video
- Skills: SQL, Python, NLP
- Academy: DataExpert.io Academy

## About this lesson

In this lab, Zach focuses on re-ranking and working with an external worker process, which are crucial for optimizing the retrieval system. He implements metadata filtering and re-ranking to improve query results, ensuring that he accurately classifies document types and determines the optimal number of documents to retrieve. He demonstrates how to set up a PubNub channel for asynchronous processing, allowing him to handle longer tasks without timing out.

## Navigation

- Previous lesson: [RAG optimisation + Reranking Day 2 Lecture](https://www.dataexpert.io/lesson/rag-optimisation-reranking-day2-lecture-oct-2025-p737-l1511.md)
- Next lesson: [Optimize your dev workflow with Claude Code and Codex Day1 Lecture](https://www.dataexpert.io/lesson/optimizeyourdevworkflowwithclaudecodeandcodexday1lecture-mar26-p737-l2141.md)
