Skip to content
GitHub

Configuration

The configuration section is ai_feedback (loaded from the ai_feedback: key in application.yaml).

KeyTypeDefaultEnv VariableDescription
enabledbooltrueLEX_AI_FEEDBACK__ENABLEDMaster on/off switch for all feedback collection
async_processingbooltrueLEX_AI_FEEDBACK__ASYNC_PROCESSINGProcess feedback handlers asynchronously in the background
store_raw_payloadsboolfalseLEX_AI_FEEDBACK__STORE_RAW_PAYLOADSPersist raw incoming feedback payloads for auditing
ai_feedback:
enabled: true
async_processing: true
store_raw_payloads: false
ai_feedback:
enabled: true
async_processing: true
store_raw_payloads: true # enable for audit traceability
Terminal window
export LEX_AI_FEEDBACK__ENABLED=true
export LEX_AI_FEEDBACK__ASYNC_PROCESSING=true
export LEX_AI_FEEDBACK__STORE_RAW_PAYLOADS=true
from lexigram.ai.feedback.config import FeedbackConfig
config = FeedbackConfig(
enabled=True,
async_processing=True,
store_raw_payloads=False,
)

Loaded as a BaseConfig subclass (FeedbackConfig) by FeedbackProvider. The config instance is registered as a container singleton at register() time.

cfg = await container.resolve(FeedbackConfig)
  • store_raw_payloads increases storage usage — enable only when audit requirements demand it.
  • async_processing controls whether feedback processors run in background tasks or block the request path. Default true is safe for production.