Naive vector retrieval often falls short when deployed in production due to context loss and ranking inaccuracies. The course 'RAG: Beyond Basics'—created by the author behind the Prompt Engineering YouTube channel and the open-source localgpt project—targets these common pitfalls.
Curriculum and Architecture
The material balances conceptual overviews with hands-on development in Google Colab and standalone Python scripts. Starting with a standard vanilla pipeline, the curriculum progresses through modern optimization patterns:
- Document Processing: Focuses on effective parsing strategies and tuning chunk size to embedding model characteristics.
- Advanced Retrieval: Integrates re-ranking via GPT-4, ColBERT, and Cohere, as well as query expansion and Hypothetical Document Embeddings (HyDE).
- Structural Enhancements: Utilises Parent Document Retrievers for hierarchical chunking and Contextual Retrieval to preserve segment context.
- Local Deployment & Multimodal Support: Covers multimodal handling for images and tables, alongside setups for fully local, private execution.
Scope and Limitations
The course strictly focuses on unstructured text and PDF processing. Structured sources such as relational databases or CSV files are explicitly excluded from the syllabus. Basic Python knowledge is required.