RAG & Vector Lab

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.

44interactive experiments

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. 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

  2. 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. 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

  4. 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

  5. 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
  6. 7. Level 7: advanced retrieval

    You use reranking, MMR, query expansion and filtering aware of their limits.

    • Reranking
    • MMR
    • Filtering

    References

  7. 8. Level 8: chatting with documents

    You process files, preserve privacy and resist prompt injection.

    • Reading PDF and DOCX
    • Isolation
    • Injection

    References

  8. 9. Level 9: evaluating retrieval

    You measure with proper metrics and avoid unsupported conclusions.

    • Precision/Recall
    • MRR/NDCG
    • Relevance judgements

    References

  9. 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

  10. 11. Level 11: GraphRAG

    You understand when a knowledge graph helps and what it costs.

    • Entities and relations
    • Communities
    • Global questions

    References

  11. 12. Level 12: multimodal RAG

    You understand indexing figures and tables and the limits of textual description.

    • Figure captions
    • Extracted text
    • Source type labels
  12. 13. Level 13: RAG or fine-tuning

    You decide by the nature of the problem, not fashion.

    • Changing knowledge
    • Style
    • Cost

    References

  13. 14. Level 14: production and monitoring

    You plan deployment: hosting limits, privacy, monitoring and deletion.

    • Shared-hosting limits
    • Batched processing
    • Data deletion

    References