feedsignal/crates/web/src/server/config.rs
Austin Schaefer 44b9724645
All checks were successful
CI / check (pull_request) Successful in 8m13s
CI / test (pull_request) Successful in 2m36s
CI / audit (pull_request) Successful in 11s
Split web crate into layered modules (api/services/jobs/view)
Separates controllers (api/, the #[server] endpoints) from business
services (server/services/), background scheduling (server/jobs/,
renamed from pipeline.rs), infra bootstrap/config (server/mod.rs,
server/config.rs), and view components (app/), each one file per
responsibility instead of the previous server.rs/app.rs/pipeline.rs
grab-bags.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LoXS1ERDGC1P189RqmUxAF
2026-09-03 12:03:15 +02:00

21 lines
601 B
Rust

/// Ollama connection settings for the embedding + judgment models.
///
/// TODO: move to config/env once there's a settings story; hardcoded to
/// models already pulled locally.
pub struct LlmConfig {
pub base_url: &'static str,
pub embedding_model: &'static str,
pub embedding_dims: usize,
pub judge_model: &'static str,
}
impl Default for LlmConfig {
fn default() -> Self {
Self {
base_url: "http://localhost:11434",
embedding_model: "nomic-embed-text",
embedding_dims: 768,
judge_model: "gemma4-e4b",
}
}
}