{"course":{"slug":"ai-at-work","title":"AI at Work","url":"https://addaly.com/learn/ai-at-work","level":"beginner","track":"work"},"lesson":{"slug":"search-across-everything-you-have","title":"Finding the document, and what search cannot tell you","url":"https://addaly.com/learn/ai-at-work/search-across-everything-you-have","position":40,"of":73,"minutes":8,"answer":"Keyword and semantic search fail in opposite directions, no search proves absence, and ranking answers which document matches your words rather than which one is currently in force, so the date check is a habit.","keyIdea":"Keyword and semantic search fail in opposite directions, no search proves absence, and ranking answers which document matches your words rather than which one is currently in force, so the date check is a habit, not a setting."},"body":{"format":"markdown","text":"## Two ways of finding a document, with opposite weaknesses\n\n**Keyword search** matches strings. It finds \"INV-2291\" and every occurrence of \"indemnity\". It misses the document that says \"holiday entitlement\" when you searched for \"annual leave\".\n\n**Semantic search** matches meaning, using the embeddings described earlier. It finds the holiday policy. It struggles with \"INV-2291\", because an invoice number is a string with almost no meaning and therefore no neighbours in meaning-space.\n\nThe two fail in opposite directions, and the new tools mostly do the second while the old tools do the first. Knowing which one you are using tells you which failure to expect.\n\nThe best systems do both and merge the results, usually called hybrid search. If yours does not, you have two searches to run.\n\n## No search tells you what it missed\n\nA search that returns four results is not evidence that four exist. It is evidence that the system ranked four highly enough to show you. This is obvious when stated and forgotten constantly, especially when the answer arrives in a fluent sentence rather than a list of links.\n\nFor \"is there anything about X?\", one search is never enough:\n\n- Search in your words.\n- Search in the organisation's words: the actual phrase your policies use.\n- Search for the person who would have written it, or the year.\n- Search filenames as well as contents.\n\nIf four different approaches turn up nothing, you have weak evidence of absence. One search turning up nothing is worth nothing.\n\n## Relevance is not authority\n\nRanking answers the question \"which document best matches this query\". It does not answer \"which document is currently in force\".\n\nSo a superseded 2019 policy whose wording happens to match your phrasing more closely will rank above the 2026 replacement that uses different words. It is complete, plausible, professionally formatted and wrong, and every visible signal (the tone, the letterhead, the structure) is identical to the right one.\n\nThe defence is a habit, not a setting: **check the date and the version of anything you are going to rely on, before you read it properly.** Look at the file's date, then look inside for a version or review date, then check whether a newer one exists in the same location.\n\n## What actually determines whether search works\n\nUncomfortable, and true: search quality in most organisations is set by the documents, not the tool.\n\nIf your estate is full of `Final v3 (2) FINAL.docx`, documents with no titles, no dates in the text, no owner and five near-identical copies in different folders, no model repairs that. Semantic search will confidently retrieve one of the five copies, and there is no principled reason it will be the right one.\n\nThe cheap improvements, in order of value: put the date and status in the first line of the document itself, keep one authoritative copy and delete or clearly mark the rest, and use file names a stranger could understand. All three help humans as much as machines, which is how you know they are real improvements rather than preparation for a tool.\n\n## Ask for the source, always\n\nWhere a search tool answers in prose rather than links, the same demand as everywhere else:\n\n> Answer only from the documents. After each statement, give the file name, the date of the document, and the sentence you took it from.\n\nThen check that the date is recent enough and the sentence appears. Two seconds each, and it converts search output into something you can put in front of somebody.\n\n## The free path, and it is excellent\n\nFor finding things on your own machine or a shared drive, free tools comfortably beat most paid ones:\n\n- **ripgrep** (`rg`) searches the full text of an enormous folder tree in seconds, from the command line, with exact matching and regular expressions. It is the fastest way to answer \"does this exact phrase appear anywhere\".\n- **Recoll** is free and open-source, indexes documents, PDFs, spreadsheets and mail on Windows, macOS and Linux, and gives you full-text search with a normal interface.\n- **DocFetcher** does the same, cross-platform and portable.\n- **Everything** on Windows searches file names instantly across every drive.\n\nAdd a semantic layer only if you need it, and it is also free: a local embedding model through **Ollama** over your own folder. Start with `rg` and Recoll, though. Most of what people want from \"AI search\" is full-text search over documents that were never indexed at all."},"check":{"question":"A semantic search surfaces a complete, well-formatted 2019 policy above the 2026 replacement. Why did the older document win?","options":[{"text":"Older documents have accumulated more links and references, which raises their ranking.","correct":false,"tempting":"Imports link-based web ranking into a document index that generally has no link graph to count."},{"text":"Ranking measures how closely a document matches your query's wording, and has no notion of which version is in force: the superseded text simply used words closer to yours.","correct":true},{"text":"The 2026 policy has not been indexed yet, since newer files take time to appear.","correct":false,"tempting":"Assumes an indexing lag; the same outcome occurs with both documents fully indexed, which is why the date check is needed permanently rather than during rollout."},{"text":"Semantic search prefers longer documents, and policies tend to shorten over successive versions.","correct":false,"tempting":"Invents a length preference; retrieval scores chunks by similarity, and chunk length is normalised in most implementations."}]},"prev":{"slug":"an-inbox-that-triages-itself","title":"Triage, summarise, draft, and never send","url":"https://addaly.com/learn/ai-at-work/an-inbox-that-triages-itself"},"next":{"slug":"notebooks-and-the-private-corpus","title":"Notebooks that answer only from your sources","url":"https://addaly.com/learn/ai-at-work/notebooks-and-the-private-corpus"},"authorship":"Founder and series editor: Dr Mustafa Mun. Written by AI models to a written standard. Source and assessment review continues. Academic review invited.","review":{"status":"Draft, open for academic review"},"cite":"Addaly (2026) 'Finding the document, and what search cannot tell you', in AI at Work. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/ai-at-work/search-across-everything-you-have (Accessed: 29 November 2026).","licence":{"name":"CC BY-NC-SA 4.0","url":"https://creativecommons.org/licenses/by-nc-sa/4.0/"},"reader":{"schema":1,"title":"Finding the document, and what search cannot tell you","courseTitle":"AI at Work","module":{"index":5,"slug":"the-tools-on-your-desk","title":"The tools already on your desk"},"answer":null,"keyIdea":"Keyword and semantic search fail in opposite directions, no search proves absence, and ranking answers which document matches your words rather than which one is currently in force, so the date check is a habit, not a setting.","hero":{"kind":"plate","image":null,"alt":null,"caption":null},"blocks":[{"t":"h2","id":"two-ways-of-finding-a-document-with-opposite-weaknesses","runs":[{"text":"Two ways of finding a document, with opposite weaknesses"}]},{"t":"p","runs":[{"text":"Keyword search","b":true},{"text":" matches strings. It finds “INV-2291” and every occurrence of “indemnity”. It misses the document that says “holiday entitlement” when you searched for “annual leave”."}]},{"t":"p","runs":[{"text":"Semantic search","b":true},{"text":" matches meaning, using the embeddings described earlier. It finds the holiday policy. It struggles with “INV-2291”, because an invoice number is a string with almost no meaning and therefore no neighbours in meaning-space."}]},{"t":"p","runs":[{"text":"The two fail in opposite directions, and the new tools mostly do the second while the old tools do the first. Knowing which one you are using tells you which failure to expect."}]},{"t":"p","runs":[{"text":"The best systems do both and merge the results, usually called hybrid search. If yours does not, you have two searches to run."}]},{"t":"h2","id":"no-search-tells-you-what-it-missed","runs":[{"text":"No search tells you what it missed"}]},{"t":"p","runs":[{"text":"A search that returns four results is not evidence that four exist. It is evidence that the system ranked four highly enough to show you. This is obvious when stated and forgotten constantly, especially when the answer arrives in a fluent sentence rather than a list of links."}]},{"t":"p","runs":[{"text":"For “is there anything about X?”, one search is never enough:"}]},{"t":"ul","items":[[{"text":"Search in your words."}],[{"text":"Search in the organisation’s words: the actual phrase your policies use."}],[{"text":"Search for the person who would have written it, or the year."}],[{"text":"Search filenames as well as contents."}]]},{"t":"p","runs":[{"text":"If four different approaches turn up nothing, you have weak evidence of absence. One search turning up nothing is worth nothing."}]},{"t":"h2","id":"relevance-is-not-authority","runs":[{"text":"Relevance is not authority"}]},{"t":"p","runs":[{"text":"Ranking answers the question “which document best matches this query”. It does not answer “which document is currently in force”."}]},{"t":"p","runs":[{"text":"So a superseded 2019 policy whose wording happens to match your phrasing more closely will rank above the 2026 replacement that uses different words. It is complete, plausible, professionally formatted and wrong, and every visible signal (the tone, the letterhead, the structure) is identical to the right one."}]},{"t":"p","runs":[{"text":"The defence is a habit, not a setting: "},{"text":"check the date and the version of anything you are going to rely on, before you read it properly.","b":true},{"text":" Look at the file’s date, then look inside for a version or review date, then check whether a newer one exists in the same location."}]},{"t":"h2","id":"what-actually-determines-whether-search-works","runs":[{"text":"What actually determines whether search works"}]},{"t":"p","runs":[{"text":"Uncomfortable, and true: search quality in most organisations is set by the documents, not the tool."}]},{"t":"p","runs":[{"text":"If your estate is full of "},{"text":"Final v3 (2) FINAL.docx","code":true},{"text":", documents with no titles, no dates in the text, no owner and five near-identical copies in different folders, no model repairs that. Semantic search will confidently retrieve one of the five copies, and there is no principled reason it will be the right one."}]},{"t":"p","runs":[{"text":"The cheap improvements, in order of value: put the date and status in the first line of the document itself, keep one authoritative copy and delete or clearly mark the rest, and use file names a stranger could understand. All three help humans as much as machines, which is how you know they are real improvements rather than preparation for a tool."}]},{"t":"h2","id":"ask-for-the-source-always","runs":[{"text":"Ask for the source, always"}]},{"t":"p","runs":[{"text":"Where a search tool answers in prose rather than links, the same demand as everywhere else:"}]},{"t":"quote","runs":[{"text":"Answer only from the documents. After each statement, give the file name, the date of the document, and the sentence you took it from."}]},{"t":"p","runs":[{"text":"Then check that the date is recent enough and the sentence appears. Two seconds each, and it converts search output into something you can put in front of somebody."}]},{"t":"h2","id":"the-free-path-and-it-is-excellent","runs":[{"text":"The free path, and it is excellent"}],"role":"free"},{"t":"p","runs":[{"text":"For finding things on your own machine or a shared drive, free tools comfortably beat most paid ones:"}]},{"t":"ul","items":[[{"text":"ripgrep","b":true},{"text":" ("},{"text":"rg","code":true},{"text":") searches the full text of an enormous folder tree in seconds, from the command line, with exact matching and regular expressions. It is the fastest way to answer “does this exact phrase appear anywhere”."}],[{"text":"Recoll","b":true},{"text":" is free and open-source, indexes documents, PDFs, spreadsheets and mail on Windows, macOS and Linux, and gives you full-text search with a normal interface."}],[{"text":"DocFetcher","b":true},{"text":" does the same, cross-platform and portable."}],[{"text":"Everything","b":true},{"text":" on Windows searches file names instantly across every drive."}]]},{"t":"p","runs":[{"text":"Add a semantic layer only if you need it, and it is also free: a local embedding model through "},{"text":"Ollama","b":true},{"text":" over your own folder. Start with "},{"text":"rg","code":true},{"text":" and Recoll, though. Most of what people want from “AI search” is full-text search over documents that were never indexed at all."}]}],"check":{"question":[{"text":"A semantic search surfaces a complete, well-formatted 2019 policy above the 2026 replacement. Why did the older document win?"}],"options":[{"text":[{"text":"Older documents have accumulated more links and references, which raises their ranking."}],"correct":false,"tempting":[{"text":"Imports link-based web ranking into a document index that generally has no link graph to count."}]},{"text":[{"text":"Ranking measures how closely a document matches your query’s wording, and has no notion of which version is in force: the superseded text simply used words closer to yours."}],"correct":true,"tempting":null},{"text":[{"text":"The 2026 policy has not been indexed yet, since newer files take time to appear."}],"correct":false,"tempting":[{"text":"Assumes an indexing lag; the same outcome occurs with both documents fully indexed, which is why the date check is needed permanently rather than during rollout."}]},{"text":[{"text":"Semantic search prefers longer documents, and policies tend to shorten over successive versions."}],"correct":false,"tempting":[{"text":"Invents a length preference; retrieval scores chunks by similarity, and chunk length is normalised in most implementations."}]}],"order":[2,1,3,0],"why":null},"prev":{"slug":"an-inbox-that-triages-itself","title":"Triage, summarise, draft, and never send","minutes":9},"next":{"slug":"notebooks-and-the-private-corpus","title":"Notebooks that answer only from your sources","minutes":9}}}