Module: Woods::CostModel

Defined in:
lib/woods/cost_model.rb,
lib/woods/cost_model/estimator.rb,
lib/woods/cost_model/storage_cost.rb,
lib/woods/cost_model/embedding_cost.rb,
lib/woods/cost_model/provider_pricing.rb

Overview

Cost modeling for embedding, storage, and query costs across different backend configurations. Based on the cost analysis in BACKEND_MATRIX.md.

Examples:

estimate = Woods::CostModel::Estimator.new(
  units: 500,
  embedding_provider: :openai_small
)
estimate.full_index_cost    # => 0.011
estimate.monthly_query_cost # => 0.006

Defined Under Namespace

Modules: ProviderPricing Classes: EmbeddingCost, Estimator, StorageCost