WikiSearchHit
One hit from a hybrid (FTS + vector + trigram) wiki search.
One hit from a hybrid (FTS + vector + trigram) wiki search.
Matching page (summary, no body).
Combined relevance score; higher = better. Not normalised across queries.
Which retrieval track ranked this hit: HYBRID, FTS, SEMANTIC, or TRIGRAM.
Raw Postgres FTS rank score (ts_rank_cd) when the FTS track ranked this hit; None otherwise.
Raw pgvector cosine similarity in 0..1 (1 = identical) when the vector track ranked this hit; None otherwise. Use this as a confidence band: <0.3 is weakly related, >0.7 is strong.
Markdown heading of the section most likely to answer the query, without # markers. None when the page has no headings or no clear best match.
Body of the matched section (capped at section_chars, default 1200; trailing … marks truncation). Lets the caller skip a follow-up wiki_read_page round-trip for most queries.