Output formats to generate. Can specify multiple times.
# Only JSONdelve run data.csv --text-column text --output-format json# JSON and CSVdelve run data.csv --text-column text --output-format json --output-format csv# All formats (default)delve run data.csv --text-column text --output-format json --output-format csv --output-format markdown
Available formats:
json - Machine-readable taxonomy and labeled documents
# Normal (default) - spinners and checkmarksdelve run data.csv --text-column text# Quiet - errors onlydelve run data.csv --text-column text -q# Verbose - progress bars with ETAdelve run data.csv --text-column text -v# Debug - everything including internal statedelve run data.csv --text-column text -vv
Levels:
No flag: NORMAL - Spinners and completion checkmarks
-q: QUIET - Errors only
-v: VERBOSE - Progress bars with throughput-based ETA
⠹ Validating API keys...✓ API keys validated⠹ Loading data from data.csv...✓ Loaded 5,000 documents⠹ Generating taxonomy...✓ Generated 12 categories⠹ Labeling documents...✓ Labeled 5,000 documents✓ Results saved to ./results/
VERBOSE (-v)
✓ API keys validated✓ Loaded 5,000 documentsLabeling documents with LLM ━━━━━━━━━━━━━━━━ 100% 100/100 0:01:45 0:00:00✓ Classifier trained - Test F1: 0.847, Test Accuracy: 0.85✓ Total labeled: 5,000 documents - 100 by LLM - 4,900 by classifier✓ Results saved to ./results/
# CSV with required text columndelve run data.csv --text-column message# JSON with JSONPath for nested datadelve run messages.json --json-path "$.conversations[*].text"# LangSmith projectdelve run langsmith://my-project --langsmith-key $LANGSMITH_API_KEY --days 7# Full configuration exampledelve run data.csv \ --text-column feedback \ --sample-size 200 \ --output-dir ./results \ --use-case "Categorize support tickets by issue type"
Delve generates multiple output files in your specified output directory:
results/├── taxonomy.json # Machine-readable taxonomy with metadata├── labeled_documents.json # All documents with assigned categories├── labeled_data.csv # Spreadsheet format with categories├── taxonomy_reference.csv # Category lookup table├── report.md # Human-readable summary with statistics└── metadata.json # Run configuration and metadata
id,content,category,explanationdoc1,"How do I reset my password?","Technical Support","User asking about account recovery"doc2,"What are your pricing plans?","Billing Inquiry","Question about product pricing"
Set these environment variables before running Delve:
# Requiredexport ANTHROPIC_API_KEY="your-anthropic-key"# Required when sample_size > 0 and docs > sample_size (for classifier)export OPENAI_API_KEY="your-openai-key"# Optionalexport LANGSMITH_API_KEY="your-langsmith-key"
The OpenAI API key is needed for generating embeddings when training the classifier. If your dataset is small enough that all documents are labeled by the LLM (no classifier needed), you can skip the OpenAI key.