# Vector search

Source: https://www.getvantage.global/ar/glossary/vector-search

Vector search is a method of finding information by meaning rather than by exact words, by comparing numerical representations of text called embeddings. Vector search lets a system find the passage that answers a question even when that passage uses different wording from the question. Keyword search finds documents that contain the words you typed. That works until the contract says termination where you searched for exit, or the report is in Arabic and your question is in English. Vector search handles those cases by comparing meaning. It works in two steps. First, every passage in your documents is turned into a list of numbers, an embedding, that captures what it is about. Then a question is turned into numbers the same way, and the system finds the passages whose numbers sit closest to it. We rarely use vector search alone. The best results usually come from combining it with keyword search, which is better at exact names, codes and figures, and with filters that respect who is allowed to see what. That mix is the retrieval half of RAG (retrieval-augmented generation). Vector search finds candidates; it does not prove anything. A passage that is close in meaning can still be the wrong one. That is why we pair retrieval with checks that confirm the answer really appears in the source, and why every answer we produce points to the page it came from. The index itself is derived from your documents, so we treat it like them: it can live in your own cloud, under the same permissions as the files it was built from.

In practice, we combine vector search with keyword search and permission filters, so a question about an exit clause still finds the termination section, and only for people allowed to read that contract.
