CrucibleIR.Feedback.Config (CrucibleIR v0.2.1)

View Source

Configuration for feedback collection.

Defines how feedback should be collected, stored, and processed.

Fields

  • :enabled - Whether feedback collection is enabled
  • :sampling_rate - Percentage of requests to sample
  • :feedback_types - Types of feedback to collect
  • :storage - Storage backend
  • :retention_days - Data retention period
  • :anonymize_pii - Whether to anonymize PII
  • :drift_detection - Drift detection settings
  • :retraining_trigger - Retraining trigger settings
  • :options - Additional options

Examples

iex> config = %CrucibleIR.Feedback.Config{
...>   enabled: true,
...>   sampling_rate: 0.1
...> }
iex> config.sampling_rate
0.1

Summary

Types

storage()

@type storage() :: :postgres | :s3 | :bigquery | :local | atom()

t()

@type t() :: %CrucibleIR.Feedback.Config{
  anonymize_pii: boolean(),
  drift_detection: map() | nil,
  enabled: boolean(),
  feedback_types: [atom()],
  options: map() | nil,
  retention_days: pos_integer() | nil,
  retraining_trigger: map() | nil,
  sampling_rate: float(),
  storage: storage()
}