Eight interactive labs: text chunking, embeddings, semantic search, vector databases, the RAG pipeline, advanced retrieval, chat with your documents and evaluation, plus an assistant builder for your own documents and experiments that run in the browser.
- Home
- Text Chunking Lab
- Embeddings Lab
- Semantic Search Lab
- Vector Databases Lab
- RAG Pipeline Lab
- Advanced Retrieval Lab
- Chat with Documents Lab
- RAG Evaluation Lab
- GraphRAG Lab
- Multimodal RAG Lab
- RAG vs Fine-Tuning Arena
- Build your document assistant
- RAG engineering roadmap
- Project library
- Datasets library
- Algorithms and concepts
- Scientific references
- Glossary and FAQ
RAG engineering roadmap
Fourteen levels. Each has goals, topics, related experiments and a short quiz. Your progress is saved to your account when logged in, otherwise only in this browser.
1. Level 1: retrieval and generation basics
You understand why a model alone is not enough and how retrieval adds a verifiable source.
- Limits of knowledge stored in a model
- Hallucination
- The RAG idea
References
- Lewis, P., Perez, E., Piktus, A., et al. (12 authors; tool returned first 3) (2020). Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. Advances in Neural Information Processing Systems (NeurIPS 2020); arXiv:2005.11401.
- Gao, Y., Xiong, Y., Gao, X., et al. (10 authors; tool returned first 3) (2023). Retrieval-Augmented Generation for Large Language Models: A Survey. arXiv preprint (arXiv:2312.10997).
2. Level 2: text processing and chunking
You chunk documents deliberately and process Arabic with normalisation that keeps the original.
- Chunking strategies
- Size and overlap
- Arabic normalisation
3. Level 3: embeddings and similarity
You tell lexical vectors from semantic ones and choose a similarity metric.
- Embeddings
- Cosine and dot product
- 2-D projection
References
- Reimers, N., Gurevych, I. (2019). Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks. Proceedings of EMNLP-IJCNLP 2019, pp. 3980-3990.
- Deerwester, S., Dumais, S. T., Furnas, G. W., Landauer, T. K., Harshman, R. (1990). Indexing by latent semantic analysis. Journal of the American Society for Information Science 41(6), pp. 391-407.
4. Level 4: lexical, vector and hybrid search
You compare BM25 and vector search and fuse them.
- BM25
- Vector search
- RRF
References
- Robertson, S., Zaragoza, H. (2009). The Probabilistic Relevance Framework: BM25 and Beyond. Foundations and Trends in Information Retrieval 4(1-2), pp. 1-174.
- Karpukhin, V., Oguz, B., Min, S., Lewis, P., Wu, L., Edunov, S., Chen, D., Yih, W. (2020). Dense Passage Retrieval for Open-Domain Question Answering. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 6769-6781.
- Cormack, G. V., Clarke, C. L. A., Buettcher, S. (2009). Reciprocal rank fusion outperforms condorcet and individual rank learning methods. Proceedings of the 32nd International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 758-759.
5. Level 5: vector databases and indexes
You understand the accuracy, speed and memory trade-off of Flat, IVF and HNSW.
- ANN
- HNSW
- IVF and quantisation
References
- Malkov, Y. A., Yashunin, D. A. (2020). Efficient and Robust Approximate Nearest Neighbor Search Using Hierarchical Navigable Small World Graphs. IEEE Transactions on Pattern Analysis and Machine Intelligence 42(4), pp. 824-836 (online first 2018).
- Johnson, J., Douze, M., Jegou, H. (2021). Billion-Scale Similarity Search with GPUs. IEEE Transactions on Big Data 7(3), pp. 535-547 (online first 2019).
- Jegou, H., Douze, M., Schmid, C. (2011). Product Quantization for Nearest Neighbor Search. IEEE Transactions on Pattern Analysis and Machine Intelligence 33(1), pp. 117-128.
6. Level 6: the RAG pipeline and citation
You build a pipeline that declines on weak evidence, cites and validates.
- Evidence test
- The prompt
- Citation checking
7. Level 7: advanced retrieval
You use reranking, MMR, query expansion and filtering aware of their limits.
- Reranking
- MMR
- Filtering
References
- Carbonell, J., Goldstein, J. (1998). The use of MMR, diversity-based reranking for reordering documents and producing summaries. Proceedings of the 21st Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 335-336.
- Nogueira, R., Cho, K. (2019). Passage Re-ranking with BERT. arXiv preprint (arXiv:1901.04085).
- Gao, L., Ma, X., Lin, J., Callan, J. (2023). Precise Zero-Shot Dense Retrieval without Relevance Labels. Proceedings of the 61st Annual Meeting of the ACL (Volume 1: Long Papers), pp. 1762-1777 (HyDE).
8. Level 8: chatting with documents
You process files, preserve privacy and resist prompt injection.
- Reading PDF and DOCX
- Isolation
- Injection
References
9. Level 9: evaluating retrieval
You measure with proper metrics and avoid unsupported conclusions.
- Precision/Recall
- MRR/NDCG
- Relevance judgements
References
10. Level 10: faithfulness and answer quality
You separate retrieval quality from answer quality and know the limits of proxy indicators.
- Faithfulness
- Human judges
- RAGAS
References
11. Level 11: GraphRAG
You understand when a knowledge graph helps and what it costs.
- Entities and relations
- Communities
- Global questions
References
12. Level 12: multimodal RAG
You understand indexing figures and tables and the limits of textual description.
- Figure captions
- Extracted text
- Source type labels
13. Level 13: RAG or fine-tuning
You decide by the nature of the problem, not fashion.
- Changing knowledge
- Style
- Cost
References
- Ovadia, O., Brief, M., Mishaeli, M., Elisha, O. (2024). Fine-Tuning or Retrieval? Comparing Knowledge Injection in LLMs. Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 237-250.
- Guu, K., Lee, K., Tung, Z., et al. (5 authors; tool returned first 3) (2020). REALM: Retrieval-Augmented Language Model Pre-Training. arXiv preprint (arXiv:2002.08909).
14. Level 14: production and monitoring
You plan deployment: hosting limits, privacy, monitoring and deletion.
- Shared-hosting limits
- Batched processing
- Data deletion
References
