Typed configuration reference¶
Defaults and scalar constraints below come from the Pydantic models. Cross-field rules are described in Configuration. The JSON Schema is generated from the same models.
Root¶
| Field | Type | Default | Constraints |
|---|---|---|---|
dump |
DumpConfig |
required | — |
seed |
int |
42 |
— |
output_dir |
Path |
required | — |
tasks |
Dict[str, TaskConfig] |
required | — |
services |
ServicesConfig |
{"llm": null, "knowledge_base": null, "embeddings": null} |
— |
corpus |
CorpusConfig |
mapping with 10 entries; see complete example |
— |
inspection |
InspectionConfig |
{"sample_pages": 10000, "pilot_articles": 100, "pilot_max_pages": 10000} |
— |
dump¶
| Field | Type | Default | Constraints |
|---|---|---|---|
path |
Path |
required | — |
language |
str |
required | minLength=2 |
dump_id |
Optional[str] |
null |
minLength=1 |
inspection¶
| Field | Type | Default | Constraints |
|---|---|---|---|
sample_pages |
int |
10000 |
exclusiveMinimum=0 |
pilot_articles |
int |
100 |
exclusiveMinimum=0 |
pilot_max_pages |
int |
10000 |
exclusiveMinimum=0 |
corpus¶
| Field | Type | Default | Constraints |
|---|---|---|---|
article_limit |
Optional[int] |
null |
exclusiveMinimum=0 |
max_pages |
Optional[int] |
null |
exclusiveMinimum=0 |
min_paragraphs |
int |
4 |
exclusiveMinimum=0 |
max_paragraphs |
int |
8 |
exclusiveMinimum=0 |
min_paragraph_chars |
int |
150 |
exclusiveMinimum=0 |
max_paragraph_chars |
int |
900 |
exclusiveMinimum=0 |
cleaning_mode |
Literal['structured', 'legacy'] |
"structured" |
enum=['structured', 'legacy'] |
excluded_title_suffixes |
List[str] |
[] |
— |
excluded_paragraph_prefixes |
List[str] |
[] |
— |
additional_excluded_link_prefixes |
List[str] |
[] |
— |
tasks.¶
| Field | Type | Default | Constraints |
|---|---|---|---|
enabled |
bool |
true |
— |
target |
int |
100 |
exclusiveMinimum=0 |
options |
Dict[str, Any] |
{} |
— |
services¶
| Field | Type | Default | Constraints |
|---|---|---|---|
llm |
Optional[LLMProviderConfig] |
null |
— |
knowledge_base |
Optional[KnowledgeBaseConfig] |
null |
— |
embeddings |
Optional[EmbeddingProviderConfig] |
null |
— |
services.embeddings¶
| Field | Type | Default | Constraints |
|---|---|---|---|
provider |
str |
"sentence_transformers" |
minLength=1 |
model |
str |
"sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2" |
minLength=1 |
batch_size |
int |
128 |
exclusiveMinimum=0 |
local_files_only |
bool |
false |
— |
services.knowledge_base¶
| Field | Type | Default | Constraints |
|---|---|---|---|
ner_ontology_by_label |
Dict[str, List[str]] |
mapping with 17 entries; see complete example |
— |
ner_labels |
List[str] |
["PER", "GROUP", "FACILITY", "ORG", "LOC", "WORK", "EVENT", "PRODUCT", "LANGUAGE", "LAW", "AWARD", "MEDICAL", "TAXON", "CHEMICAL", "CELESTIAL", "FOOD", "VEHICLE"] |
— |
ner_label_priority |
List[str] |
["PER", "GROUP", "FACILITY", "ORG", "LANGUAGE", "LAW", "AWARD", "MEDICAL", "TAXON", "CHEMICAL", "CELESTIAL", "FOOD", "VEHICLE", "LOC", "WORK", "EVENT", "PRODUCT"] |
— |
provider |
str |
"wikidata" |
minLength=1 |
cache_path |
Optional[Path] |
null |
— |
offline |
bool |
false |
— |
title_batch_size |
int |
50 |
maximum=50; exclusiveMinimum=0 |
ontology_batch_size |
int |
10 |
exclusiveMinimum=0 |
request_delay_seconds |
float |
0.25 |
minimum=0; maximum=60 |
timeout_seconds |
int |
60 |
exclusiveMinimum=0 |
max_retries |
int |
3 |
minimum=0 |
user_agent |
str |
"hermes-benchmark/0.0.6 (https://github.com/sasalya98/hermes-benchmark)" |
minLength=1 |
services.llm¶
| Field | Type | Default | Constraints |
|---|---|---|---|
provider |
str |
required | minLength=1 |
model |
str |
required | minLength=1 |
batch_size |
int |
5 |
exclusiveMinimum=0 |
temperature |
float |
0 |
minimum=0; maximum=2 |
project |
Optional[str] |
null |
minLength=1 |
location |
str |
"us-central1" |
minLength=1 |
cache_path |
Optional[Path] |
null |
— |
api_key |
Optional[SecretStr] |
null |
secret; excluded from serialization |
api_key_file |
Optional[Path] |
null |
— |
timeout_seconds |
int |
240 |
exclusiveMinimum=0 |
max_retries |
int |
5 |
exclusiveMinimum=0 |
max_output_tokens |
int |
8192 |
exclusiveMinimum=0 |
api_version |
str |
"v1" |
minLength=1 |
Complete examples: 1,000-record AZ, Gemini QA. Omitted optional services default to null; task dependency checks can still require them.