You describe what to analyze. Pollux handles source patterns, context caching, and the multimodal plumbing.
from pollux import run, Config, Source
result = await run(
"Summarize the key findings",
source=Source.from_file("paper.pdf"),
config=Config(
provider="gemini",
model="gemini-2.5-flash-lite",
),
)
print(result["answers"][0])
PDFs, images, video, YouTube, arXiv. One interface, any source type.
Fan-out, fan-in, and broadcast execution over your content. No boilerplate.
Upload once, reuse across prompts. Automatic TTL management saves tokens and money.
Async pipeline, retries with backoff, structured output, usage tracking.
pip install pollux-ai