pub mod model;
pub mod ollama;
pub mod rank;
pub mod sources;
pub mod tui;
pub mod verdict;
pub use model::{Match, Query, Saturation, Source, Verdict};
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("http request failed: {0}")]
Http(#[from] reqwest::Error),
#[error("failed to parse response: {0}")]
Parse(String),
#[error("ollama not reachable at {0} — run `ollama serve` and `ollama pull qwen2.5`")]
OllamaUnreachable(String),
#[error("ollama could not generate a verdict: {0}")]
OllamaModel(String),
#[error("embedding failed: {0}")]
Embedding(String),
}
pub type Result<T> = std::result::Result<T, Error>;