« All posts

Extending Polars with Rust Expression Plugins

fenic enhances AI and LLM pipeline capabilities by using Rust expression plugins to extend Polars.

fenic is a DataFrame library that provides a PySpark-style API for building AI and LLM pipelines over messy, unstructured data. This post discusses the development of nine Rust plugins that enhance Polars' expression engine, addressing the limitations of Python UDFs and enabling efficient data processing within the engine. The plugins allow for complex operations to be seamlessly integrated into a single expression tree, improving performance and type handling.