What is the difference between keyword vs semantic search?
In keyword vs semantic search, keyword search finds documents containing the query’s words, ranked by a function such as BM25. Semantic search finds documents close in meaning using embeddings, even with no shared words. Keyword is better for exact codes and names; semantic for paraphrased questions.
What is BM25?
BM25 (Best Matching 25) is a ranking function for keyword search. It scores a document by how often each query term appears, with diminishing returns, how rare the term is across the collection, and how long the document is. It is the default in Elasticsearch and OpenSearch.
Is semantic search better than keyword search?
Not across the board. Trained dense retrievers beat BM25 on the question-answering data they were trained for, but the BEIR benchmark found BM25 a robust baseline on unfamiliar domains. Combining both usually beats either one.
What is hybrid search?
Hybrid search runs keyword and semantic search on the same query and merges the two result lists — by normalising and weighting their scores, or by reciprocal rank fusion, which rewards documents that rank high in either list.
What is reranking in search?
A second pass in which a slower, more accurate model — usually a cross-encoder that reads the query and passage together — rescores the top candidates from the first-stage search, so the best few go to the user or the LLM.
What is the difference between semantic search and vector search?
Vector search is the mechanism: finding nearest neighbours among vectors. Semantic search is the aim: matching meaning. Semantic search over text is usually done with vector search over embeddings.
BM25 vs TF-IDF: what is the difference?
Both weight terms by frequency in the document and rarity in the collection. BM25 adds saturation, so repeated terms give diminishing returns, and length normalisation, so long documents are not favoured just for containing more words.
Do Botminds agents use keyword or semantic search?
Both. Agents search by meaning and by exact words under the same filters, choose per search or run both for one question, and narrow by label, document, page or sheet. See agentic RAG.