Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

1.2 KB
Raw Blame

Fixed the Tier 4 journal-quality cache silently dropping scores when two spellings of the same journal fold together ("Nature" vs "nature"). Journal carries two independent unique constraints, UNIQUE(name) and uq_journals_name_lower, and both the upsert's lookups and the cache read were keyed on the raw name: a folded-equal spelling missed the stored row, tripped the second constraint on insert, and missed again on the recovery re-fetch, discarding the LLM score with a "row not found on re-fetch" warning. The cache read had the same miss, so an alternate spelling re-ran the expensive Tier 4 analysis the cache exists to avoid and then landed on the existing row anyway. All three lookups now resolve by name_lower=normalize_name(name), the folded identity both constraints agree on, so a collision on either one resolves against the same row.

The pre-insert check, the post-collision re-fetch and the cache read now all resolve by that folded key, and the re-fetch matches the raw name as well: a row whose name_lower is NULL (the column is nullable and only migration 0006 backfills it) misses the folded check, trips UNIQUE(name) instead, and would be missed again by a folded-only re-fetch. The update repairs the NULL so the row converges.