# Pipeline Orchestrator Configuration
# Copy to ~/.config/reference-curator/pipeline_config.yaml

pipeline:
  # Discovery stage
  max_sources: 10

  # Crawler stage
  max_pages: 50

  # Auto-approve settings
  auto_approve: false
  approval_threshold: 0.85

qa_loop:
  # Maximum iterations before escalating to manual review
  max_refactor_iterations: 3
  max_deep_research_iterations: 2
  max_total_iterations: 5

export:
  # Default export format: project_files, fine_tuning, jsonl
  default_format: project_files

  # Include rejected documents in a separate folder
  include_rejected: false

state:
  # State management backend: mysql or file
  backend: ${STATE_BACKEND:-file}

  # File-based state directory (used when backend=file)
  state_directory: ${REFERENCE_LIBRARY_PATH:-~/Documents/05_AI Agent/10_Reference Library}/pipeline_state/

logging:
  # Log level: DEBUG, INFO, WARNING, ERROR
  level: INFO

  # Save detailed logs for each run
  save_run_logs: true
