A company with 60,000 employees keeps 20 million documents across its wiki, shared drives and ticketing system. Keyword search fails when people describe what they need in different words, so the company wants search by meaning: 'how do I expense a client dinner' should find the travel policy even if it never uses the word 'dinner'. Documents are split into passages and turned into embeddings by a model; about 200,000 documents change every day. At peak there are 500 searches per second. Results must arrive in under a second, and nobody may ever see a passage from a document they are not allowed to open.
Functional requirements
Index documents from several sources by splitting them into passages and embedding each one
Answer natural-language queries with the most relevant passages and their documents