chore: harden system settings and unify prompt usage

Validate settings updates, use typed embedding backends, and route
ingestion through DB-stored prompts so admin edits take effect.
This commit is contained in:
Per Stark
2026-05-29 11:48:13 +02:00
parent f625a7e0a9
commit 544a790e34
8 changed files with 244 additions and 94 deletions
@@ -1,8 +1,5 @@
use common::storage::types::system_prompts::DEFAULT_INGRESS_ANALYSIS_SYSTEM_PROMPT;
use serde_json::json;
pub static INGRESS_ANALYSIS_SYSTEM_MESSAGE: &str = DEFAULT_INGRESS_ANALYSIS_SYSTEM_PROMPT;
pub fn get_ingress_analysis_schema() -> serde_json::Value {
json!({
"type": "object",