searching-documents
Builds and debugs retrieval with the gaik toolkit — PgVectorStore, Ranker, FinnishTextProcessor, RelevanceGate — as hybrid search: pgvector similarity plus Postgres full-text, fused by rank, and the same design in plain SQL for a TypeScript app. Use whenever gaik is used for search or RAG retrieval, whenever Finnish text is indexed for full-text search, when adding semantic or hybrid search over document chunks, and when deciding whether a search found anything relevant at all. Also use when search misbehaves without an error: a sentence query gets no keyword hits, a word visibly in the text is not found, hybrid returns what vector-only returns, gibberish fills a page of results, or a similarity threshold never filters anything; and when measuring retrieval with Hit@K or MRR, or judging whether a reranker, synonyms, or query translation helped.
Pinned to revision c042e560ccac, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/searching-documents/SKILL.md
- skills/searching-documents/references/evaluating-retrieval.md
- skills/searching-documents/references/finnish.md
- skills/searching-documents/references/postgres-without-gaik.md
Every link opens the file at its source, pinned to the revision this page describes.