Skip to content

Jev directory

Polar Llama

A Python library that runs LLM and Jev calls as Polars expressions: parallel inference across providers, Pydantic-validated outputs as struct columns, and a native TypeSafe System One layer for per-row decision questions.
Stars
30
Language
Python
License
MIT
Reading time
2 min
Published by
Community
Author
pnthn-ai
Last verified
Oct 2026

Highlights

  • Call pl.col('Questions').llama.inference_async(...) to fan parallel model calls out inside a Polars pipeline.
  • The TypeSafe System One layer answers calibrated yes/no, choice, and score questions per row, landing as typed columns with confidence.
  • Providers include OpenAI, Anthropic, Gemini, Groq, and AWS Bedrock; Pydantic models validate outputs as Polars Structs.
  • Ships Rust-powered cosine, dot-product, and Euclidean similarity, HNSW approximate nearest-neighbor search, and provider-native prompt caching.
  • execute_tool_calls runs every tool call of every row in parallel against an MCP server or a Python callable.

Quickstart

python
import polars as pl
from polar_llama import Provider

df = pl.DataFrame({'Questions': ['What is the capital of France?']})
df = df.with_columns(
    answer=pl.col('Questions').llama.inference_async(
        provider=Provider.OPENAI, model='gpt-4o-mini'
    )
)

Watch out

Copy reviewed against the repo README on 2026-10-15; it states no pricing, token limits, or benchmark numbers. The Jev path needs a TypeSafe API key, parallel inference bills against whichever provider key you configure, and setup details live in docs/TYPESAFE.md beyond what was captured.

Questions about this entry

Short answers drawn from the linked project or page.

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai