## Summary Improve the quality, consistency, and completeness of the tutorials directory. ## Tasks ### David review comments - [x] Verify that all links work properly (some README links were broken after the tutorial renaming) (Alon) - [ ] Rename adapter → adapter function where it makes sense (Yair). - [ ] Rename pipeline → add_conversation_turn (Yair). - [ ] Rename bring your own adapter → build your own adapter (Yair). - [ ] Update hello Mellea to run on T4 GPUs - fix comment (Ofer) - [ ] Validate rag 101 tutorial from the main branch on T4 (Yair). - [ ] Validate full rag tutorial from the main branch on T4 (Ofer). - [ ] Validate full rag tutorial from the main branch on A100 (Yair). - [ ] Validate HF tutorials from the main branch on T4 (Alon). ### 1. Clean up tutorial 02 (RAG pipeline) - [x] Fix broken import path (`govt_data_loader` vs `scripts/govt_data_loader`) - [x] Fix threshold inconsistency between `show_intermediates` (0.4) and `run_pipeline` (0.5) - [x] Remove unused `ANSWERABILITY_THRESHOLD` constant - [x] Consolidate scattered imports - [x] Refactor large function cell into smaller, focused cells - [x] Add explanatory comments for non-obvious design choices (TOP_K, temperature, pipeline ordering) - [x] Improve `govt_data_loader.py` error handling and progress feedback - [x] Add diagram showing the 7-step pipeline flow, including the three exit points (blocked, unanswerable, needs clarification) ### 2. Align format across all tutorials - [x] Convert the hello-adapter to a notebook - [x] Standardize heading hierarchy (H1 title, H2 numbered sections) - [x] Standardize template (intro -> prerequisite -> content -> next steps ) - [x] Add time estimates and prerequisites links to all tutorials - [x] Add "Next Steps" sections linking to related tutorials - [x] Consolidate imports in notebooks (not scattered across cells) - [x] Replace ANSI color codes with `display(Markdown())` in notebook 01 - [x] Use Rich Markdown rendering for the printing method (see RAG tutorial) - [x] Add "What you will learn" to each notebook - [x] Improve prose clarity across all tutorials - [x] Validate clear text in all notebooks - [x] Add missing context if needed (e.g., aLoRA vs LoRA explanation, attribution instruction context) - [x] Provide a one-line explanation on each adapter before usage - [x] Validate all links ### 3. Consider adding new tutorials - [x] Evaluate a simpler RAG tutorial (inline docs, no vector DB) as a stepping stone - [x] Evaluate a complex RAG tutorial with loop between answerability rewriting
Summary
Improve the quality, consistency, and completeness of the tutorials directory.
Tasks
David review comments
1. Clean up tutorial 02 (RAG pipeline)
govt_data_loadervsscripts/govt_data_loader)show_intermediates(0.4) andrun_pipeline(0.5)ANSWERABILITY_THRESHOLDconstantgovt_data_loader.pyerror handling and progress feedback2. Align format across all tutorials
display(Markdown())in notebook 013. Consider adding new tutorials