Skip to contents

Classify & extract

Assign categories or discover categories from text, images, or PDFs.

classify()
Classify text, images, or PDFs using LLMs
extract()
Extract categories from text, images, or PDFs using LLMs
explore()
Explore raw categories in text data

Summarize

summarize()
Summarize text, images, or PDFs using LLMs

Prompt optimization

Interactive, human-in-the-loop tuning of the system prompt.

prompt_tune()
Optimize a classification prompt with human-in-the-loop feedback

Installation

install_cat_stack()
Install the cat-stack Python package

Local Ollama

ensure_ollama_running()
Ensure a local Ollama server is running