Skip to content

Eventual-Inc/daft-examples

Repository files navigation

Daft Examples

An examples hub for running Multimodal AI Workloads on Daft

Getting Started

This repository is organized into three sections:

  1. Usage Patterns - Small atomic demonstrations of core features.
  2. Use Cases - Entire Pipelines built in Daft.
  3. Notebooks - End to End tutorials on working with Daft in an interactive Jupyter Notebook

To get started, run the following in your terminal.

git clone https://github.com/Eventual-Inc/daft-examples.git
cd daft-examples
make setup

Running Examples

This project leverages uv scripts for dependency management isolation. This is because many of the scripts in this repository have different requirements. The venv that is created by the setup make target is just for type hints and notebooks.

You can run any script like:

uv run usage_patterns/prompt/prompt.py

If you don't have uv, check out this installation guide.

System dependencies

  • Some examples leverage libraries like soundfile or PyAv to process audio and video files which requires ffmpeg.

Usage Patterns

Prompt

Embeddings

Classification

Common Crawl

UDFs

  • udfs/cls_with_types.py - Class-based UDFs with TypedDict, Pydantic, batch processing, and async functions
  • udfs/udf.py - Simple UDF example to extract file names from File objects

I/O

Use Cases

Transcription

Voice AI Analytics

Notebooks

About

Examples for using the Daft data engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •