Skip to main content

Overview

Anysite CLI integrates with LLM providers to add AI-powered analysis to your data workflows. Six operations are available: classify, summarize, enrich, generate, match, and deduplicate.
Requires the llm extra: pip install "anysite-cli[llm]"

Setup

Configure your LLM provider:
This guides you through selecting a provider and entering your API key.

Supported Providers

Provider settings are stored in ~/.anysite/config.yaml.

Operations

Classify

Categorize records into predefined categories:
If --categories is omitted, the LLM auto-detects 3-7 appropriate categories based on the data.

Summarize

Generate concise summaries:

Enrich

Extract new structured attributes from text data:
Supported attribute types:
  • Enum — predefined choices: "seniority:junior/mid/senior"
  • Boolean — true/false: "is_technical:boolean"
  • Number — numeric value: "years_experience:number"
  • String — free text: "primary_skill:string"

Generate

Create new text using templates with field placeholders:

Match

Compare records across two sources and find best matches:
Returns the top K matches for each record in source A, with relevance scores.

Deduplicate

Find and flag semantic duplicates within a source:
Records with similarity above the threshold are flagged as potential duplicates.

Using LLM in Dataset Pipelines

Add LLM processing directly in your pipeline YAML:
Multiple LLM steps can be chained within a single LLM source. They execute in order, each adding new columns to the dataset.

Caching

LLM results are cached in a local SQLite database (~/.anysite/llm_cache.db) to avoid repeated API calls and reduce costs.
Caching is especially useful when iterating on pipeline configurations — you only pay for LLM calls once per unique input.

Options Reference

Next Steps

SQL Querying

Query and analyze your enriched data with DuckDB SQL

Examples

See complete end-to-end workflow examples