Migrate the standalone Audita role to version 2 configuration
This commit is contained in:
@@ -1,4 +1,22 @@
|
||||
version: {{ audita_config_version }}
|
||||
version: {{ audita_config_version | to_json }}
|
||||
{% if audita_profiles_dir is not none %}
|
||||
profiles_dir: {{ audita_profiles_dir | to_json }}
|
||||
{% endif %}
|
||||
backends: {{ audita_backends | to_json }}
|
||||
llm:
|
||||
proposal_profile: {{ audita_llm_proposal_profile | to_json }}
|
||||
{% if audita_llm_validation_profile is not none %}
|
||||
validation_profile: {{ audita_llm_validation_profile | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_llm_transient_retries is not none %}
|
||||
transient_retries: {{ audita_llm_transient_retries | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_llm_repair_attempts is not none %}
|
||||
repair_attempts: {{ audita_llm_repair_attempts | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_llm_operation_timeout is not none %}
|
||||
operation_timeout: {{ audita_llm_operation_timeout | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_pipeline_modules is not none %}
|
||||
pipeline:
|
||||
modules: {{ audita_pipeline_modules | to_json }}
|
||||
@@ -7,56 +25,9 @@ pipeline:
|
||||
output:
|
||||
schema: {{ audita_output_schema | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_llm_proposal_base_url is not none or audita_llm_proposal_model is not none or audita_llm_proposal_api_key_env is not none or audita_llm_proposal_timeout is not none or audita_llm_proposal_max_retries is not none or audita_llm_validation_base_url is not none or audita_llm_validation_model is not none or audita_llm_validation_api_key_env is not none or audita_llm_validation_timeout is not none or audita_llm_validation_max_retries is not none %}
|
||||
llm:
|
||||
{% if audita_llm_proposal_base_url is not none or audita_llm_proposal_model is not none or audita_llm_proposal_api_key_env is not none or audita_llm_proposal_timeout is not none or audita_llm_proposal_max_retries is not none %}
|
||||
proposal:
|
||||
{% if audita_llm_proposal_base_url is not none %}
|
||||
base_url: {{ audita_llm_proposal_base_url | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_llm_proposal_model is not none %}
|
||||
model: {{ audita_llm_proposal_model | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_llm_proposal_api_key_env is not none %}
|
||||
api_key_env: {{ audita_llm_proposal_api_key_env | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_llm_proposal_timeout is not none %}
|
||||
timeout: {{ audita_llm_proposal_timeout | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_llm_proposal_max_retries is not none %}
|
||||
max_retries: {{ audita_llm_proposal_max_retries | to_json }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if audita_llm_validation_base_url is not none or audita_llm_validation_model is not none or audita_llm_validation_api_key_env is not none or audita_llm_validation_timeout is not none or audita_llm_validation_max_retries is not none %}
|
||||
validation:
|
||||
{% if audita_llm_validation_base_url is not none %}
|
||||
base_url: {{ audita_llm_validation_base_url | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_llm_validation_model is not none %}
|
||||
model: {{ audita_llm_validation_model | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_llm_validation_api_key_env is not none %}
|
||||
api_key_env: {{ audita_llm_validation_api_key_env | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_llm_validation_timeout is not none %}
|
||||
timeout: {{ audita_llm_validation_timeout | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_llm_validation_max_retries is not none %}
|
||||
max_retries: {{ audita_llm_validation_max_retries | to_json }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if audita_concurrency_total_llm is not none or audita_concurrency_proposal_llm is not none or audita_concurrency_validation_llm is not none %}
|
||||
concurrency:
|
||||
{% if audita_concurrency_total_llm is not none %}
|
||||
total_llm: {{ audita_concurrency_total_llm | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_concurrency_proposal_llm is not none %}
|
||||
proposal_llm: {{ audita_concurrency_proposal_llm | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_concurrency_validation_llm is not none %}
|
||||
validation_llm: {{ audita_concurrency_validation_llm | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_validation_max_prompt_tokens is not none %}
|
||||
validation:
|
||||
max_prompt_tokens: {{ audita_validation_max_prompt_tokens | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_chunking_target_sections is not none or audita_chunking_max_section_tokens is not none or audita_chunking_min_section_tokens is not none %}
|
||||
chunking:
|
||||
@@ -73,13 +44,13 @@ chunking:
|
||||
{% if audita_normalization_max_segment_gap is not none or audita_normalization_ellipsis_gap is not none or audita_normalization_max_segment_duration is not none or audita_normalization_max_segment_tokens is not none %}
|
||||
normalization:
|
||||
{% if audita_normalization_max_segment_gap is not none %}
|
||||
max_segment_gap: {{ audita_normalization_max_segment_gap | to_json }}
|
||||
max_segment_gap: {{ audita_normalization_max_segment_gap | float | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_normalization_ellipsis_gap is not none %}
|
||||
ellipsis_gap: {{ audita_normalization_ellipsis_gap | to_json }}
|
||||
ellipsis_gap: {{ audita_normalization_ellipsis_gap | float | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_normalization_max_segment_duration is not none %}
|
||||
max_segment_duration: {{ audita_normalization_max_segment_duration | to_json }}
|
||||
max_segment_duration: {{ audita_normalization_max_segment_duration | float | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_normalization_max_segment_tokens is not none %}
|
||||
max_segment_tokens: {{ audita_normalization_max_segment_tokens | to_json }}
|
||||
@@ -104,12 +75,21 @@ thresholds:
|
||||
context:
|
||||
description: {{ audita_context_description | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_diagnostics_work_dir is not none or audita_diagnostics_retention is not none %}
|
||||
{% if audita_reporting_enabled is not none or audita_reporting_stdout_dir is not none %}
|
||||
reporting:
|
||||
{% if audita_reporting_enabled is not none %}
|
||||
enabled: {{ audita_reporting_enabled | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_reporting_stdout_dir is not none %}
|
||||
stdout_dir: {{ audita_reporting_stdout_dir | to_json }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if audita_diagnostics_debug is not none or audita_diagnostics_work_dir is not none %}
|
||||
diagnostics:
|
||||
{% if audita_diagnostics_debug is not none %}
|
||||
debug: {{ audita_diagnostics_debug | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_diagnostics_work_dir is not none %}
|
||||
work_dir: {{ audita_diagnostics_work_dir | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_diagnostics_retention is not none %}
|
||||
retention: {{ audita_diagnostics_retention | to_json }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user