feat(runtime): implement single-article consolidation runtime and modularize codebase
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"config_version": "1.0.0",
|
||||
"paths": {
|
||||
"output_dir": "out/articles",
|
||||
"sqlite_db": "out/runtime.db"
|
||||
},
|
||||
"roles": {
|
||||
"runtime_primary": {
|
||||
"role_config_version": "1.0.0",
|
||||
"provider": "groq",
|
||||
"model": "llama-3.1-8b-instant",
|
||||
"endpoint_url": "https://api.groq.com/openai/v1",
|
||||
"timeout_seconds": 30,
|
||||
"max_retries": 3,
|
||||
"parameters": {
|
||||
"temperature": 0.0
|
||||
},
|
||||
"hygiene_prompt_version": "1.0.0",
|
||||
"hygiene_schema_version": "1.0.0",
|
||||
"enrichment_prompt_version": "1.0.0",
|
||||
"enrichment_schema_version": "1.0.0"
|
||||
},
|
||||
"runtime_fallback": {
|
||||
"role_config_version": "1.0.0",
|
||||
"provider": "deepseek",
|
||||
"model": "deepseek-chat",
|
||||
"endpoint_url": "https://api.deepseek.com/v1",
|
||||
"timeout_seconds": 30,
|
||||
"max_retries": 3,
|
||||
"parameters": {
|
||||
"temperature": 0.0
|
||||
},
|
||||
"hygiene_prompt_version": "1.0.0",
|
||||
"hygiene_schema_version": "1.0.0",
|
||||
"enrichment_prompt_version": "1.0.0",
|
||||
"enrichment_schema_version": "1.0.0"
|
||||
}
|
||||
},
|
||||
"prompts": {
|
||||
"article_content_hygiene": {
|
||||
"path": "prompts/article_content_hygiene.v1.txt",
|
||||
"version": "1.0.0",
|
||||
"hash": "0000000000000000000000000000000000000000000000000000000000000000"
|
||||
},
|
||||
"article_sentiment_tags": {
|
||||
"path": "prompts/article_sentiment_tags.v1.txt",
|
||||
"version": "1.0.0",
|
||||
"hash": "0000000000000000000000000000000000000000000000000000000000000000"
|
||||
}
|
||||
},
|
||||
"ecp": {
|
||||
"canonical_schema_reference": "specs/006-article-consolidation-runtime/contracts/ecp-snapshot.schema.json",
|
||||
"classifier_module": "src.tools.classifier.InherenceClassifier"
|
||||
},
|
||||
"limits": {
|
||||
"max_input_bytes": 1048576,
|
||||
"context_strategy": "fail_before_provider"
|
||||
},
|
||||
"pricing": {
|
||||
"primary_input_1k": 0.00005,
|
||||
"primary_output_1k": 0.00008,
|
||||
"fallback_input_1k": 0.00014,
|
||||
"fallback_output_1k": 0.00028
|
||||
},
|
||||
"langfuse": {
|
||||
"environment": "local",
|
||||
"trace_content_policy": "metadata_only"
|
||||
},
|
||||
"sqlite": {
|
||||
"busy_timeout_ms": 5000
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user