Configuration
Config Key
Section titled “Config Key”The configuration section is ai_feedback (loaded from the ai_feedback: key in application.yaml).
Options
Section titled “Options”| Key | Type | Default | Env Variable | Description |
|---|---|---|---|---|
enabled | bool | true | LEX_AI_FEEDBACK__ENABLED | Master on/off switch for all feedback collection |
async_processing | bool | true | LEX_AI_FEEDBACK__ASYNC_PROCESSING | Process feedback handlers asynchronously in the background |
store_raw_payloads | bool | false | LEX_AI_FEEDBACK__STORE_RAW_PAYLOADS | Persist raw incoming feedback payloads for auditing |
Example YAML
Section titled “Example YAML”ai_feedback: enabled: true async_processing: true store_raw_payloads: falseProduction YAML
Section titled “Production YAML”ai_feedback: enabled: true async_processing: true store_raw_payloads: true # enable for audit traceabilityEnv Variable Override
Section titled “Env Variable Override”export LEX_AI_FEEDBACK__ENABLED=trueexport LEX_AI_FEEDBACK__ASYNC_PROCESSING=trueexport LEX_AI_FEEDBACK__STORE_RAW_PAYLOADS=trueProgrammatic
Section titled “Programmatic”from lexigram.ai.feedback.config import FeedbackConfig
config = FeedbackConfig( enabled=True, async_processing=True, store_raw_payloads=False,)Config Model
Section titled “Config Model”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_payloadsincreases storage usage — enable only when audit requirements demand it.async_processingcontrols whether feedback processors run in background tasks or block the request path. Defaulttrueis safe for production.