Make Audita configuration field-specific
This commit is contained in:
115
templates/config.yml.j2
Normal file
115
templates/config.yml.j2
Normal file
@@ -0,0 +1,115 @@
|
||||
version: {{ audita_config_version }}
|
||||
{% if audita_pipeline_modules is not none %}
|
||||
pipeline:
|
||||
modules: {{ audita_pipeline_modules | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_output_schema is not none %}
|
||||
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 %}
|
||||
{% 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:
|
||||
{% if audita_chunking_target_sections is not none %}
|
||||
target_sections: {{ audita_chunking_target_sections | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_chunking_max_section_tokens is not none %}
|
||||
max_section_tokens: {{ audita_chunking_max_section_tokens | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_chunking_min_section_tokens is not none %}
|
||||
min_section_tokens: {{ audita_chunking_min_section_tokens | to_json }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% 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 }}
|
||||
{% endif %}
|
||||
{% if audita_normalization_ellipsis_gap is not none %}
|
||||
ellipsis_gap: {{ audita_normalization_ellipsis_gap | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_normalization_max_segment_duration is not none %}
|
||||
max_segment_duration: {{ audita_normalization_max_segment_duration | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_normalization_max_segment_tokens is not none %}
|
||||
max_segment_tokens: {{ audita_normalization_max_segment_tokens | to_json }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if audita_thresholds_glossary is not none or audita_thresholds_homophones is not none or audita_thresholds_spoken_word is not none or audita_thresholds_grammar is not none %}
|
||||
thresholds:
|
||||
{% if audita_thresholds_glossary is not none %}
|
||||
glossary: {{ audita_thresholds_glossary | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_thresholds_homophones is not none %}
|
||||
homophones: {{ audita_thresholds_homophones | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_thresholds_spoken_word is not none %}
|
||||
spoken_word: {{ audita_thresholds_spoken_word | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_thresholds_grammar is not none %}
|
||||
grammar: {{ audita_thresholds_grammar | to_json }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if audita_context_description is not none %}
|
||||
context:
|
||||
description: {{ audita_context_description | to_json }}
|
||||
{% endif %}
|
||||
{% if audita_diagnostics_work_dir is not none or audita_diagnostics_retention is not none %}
|
||||
diagnostics:
|
||||
{% 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