Real user scenarios, not just examples. Each one is the same shape: the problem, the pipeline, the code, what goes in and out, and when to reach for it.
Web crawl records need to be decoded, language-filtered, chunked, embedded, and written without losing their source IDs.
Preparing retrieval or training data from Common Crawl WET/WARC input.
# Uses the default Ray runner python examples/common_crawl.py
A bounded Q&A corpus needs an offline semantic-matching pass before you commit to a separate vector database.
Prototyping retrieval or related-question matching over a static corpus.
# Uses the default sample and model settings python examples/llms_red_pajamas.py
Near-duplicate text must be grouped reproducibly, with candidate pairs and cluster decisions available for inspection.
Cleaning text before tokenization, training, or embedding.
# No model-specific dependency required python examples/minhash_dedupe.py
Image bytes need a batched decode-and-analysis path that preserves metadata and emits inspectable previews.
Validating image UDF batching and file outputs before adapting a real dataset.
# Pillow is the only example-specific dependency python examples/querying_images.py
A prompt table needs a reproducible batched generation path and a manifest that keeps each image tied to its source row.
Checking pipeline behavior locally before opting into a diffusion model and GPU.
# Placeholder is the default backend python examples/image_generation.py
Vision-language answers need typed parsing and a controlled comparison with the same question asked without its image.
Evaluating whether a VLM actually uses visual evidence and diagnosing failures.
export HF_TOKEN=your_hugging_face_token python examples/multimodal_structured_outputs.py --limit 1 --skip-judge
Audio analytics combines transcription-level metadata with searchable embeddings for each subtitle segment.
Validating an audio-to-search pipeline before enabling Whisper or hosted summaries.
# Placeholder transcription; local summary; real embeddings python examples/voice_ai_analytics.py