Glossary
Natural language search
Natural language search lets people search by typing or speaking a question in everyday language, and returns results based on what the question means rather than on exact keyword matches.
Natural language search is a way of searching where people type or say a question in ordinary language, such as “which suppliers raised prices in March?”, and the system works out what they mean before retrieving results. Instead of requiring the searcher to guess the exact words a document uses, it interprets intent, entities, constraints and context, then finds content that answers the question. Most modern natural language search combines language models for understanding the query with semantic and keyword retrieval for finding matches, and it underpins chat assistants, enterprise search tools and the retrieval step of AI agents.
How natural language search works
A natural language search system does three jobs, usually in sequence. The first is query understanding: parsing the question to find what is being asked, which entities it mentions, and which constraints apply. In “invoices from Acme over £10,000 last quarter”, the system needs to recognise a document type, a company name, an amount threshold and a date range. Older systems did this with hand-written grammars and named entity recognition; current systems often ask a large language model to turn the question into a structured query.
The second job is retrieval. The parts of the question that describe meaning are matched with semantic search, where the query and the documents are converted into embeddings and compared by similarity, so “staff holiday rules” can find a page titled “annual leave policy”. The parts that name exact things, such as product codes, people and error messages, are matched with keyword search over an inverted index, typically ranked with BM25. Systems that run both and merge the results are doing hybrid search, which is the usual design for natural language search because real questions mix descriptive language with specific names.
The third job is ranking and presentation. Candidates from retrieval are scored again, often by a reranking model that reads the query and each candidate together, and the best results are returned as a list, as highlighted passages, or as input to a model that writes a direct answer. When the output is a generated answer with citations, the system is closer to an answer engine; when the user can ask follow-up questions that build on earlier ones, it becomes conversational search.
Natural language search vs keyword search
Keyword search and natural language search sit at two ends of a range, and most production systems combine them. The table below shows the main differences in how each treats a query.
Aspect | Keyword search | Natural language search |
|---|---|---|
Typical query | “leave policy uk” | “How many days of holiday do UK staff get?” |
What is matched | Exact or stemmed terms | Meaning, entities and constraints, plus exact terms |
Synonyms and paraphrase | Missed unless configured | Handled through embeddings |
Filters | Set by the user in a sidebar | Inferred from the question |
Exact identifiers | Strong | Strong only if keyword matching is kept |
Cost and latency | Low | Higher, especially with a model in the loop |
Typical failure | No results for the wrong words | Plausible results that do not answer the question |
The last row matters most in practice. Keyword search fails visibly: the user sees nothing useful and rephrases. Natural language search tends to fail quietly, because similarity always returns something, and results that are on the right topic but miss the specific fact look convincing. For a longer treatment of the trade-off see semantic search vs keyword search and our post on when keyword beats semantic.
A worked example
Take a support team’s knowledge base of 4,000 help articles, release notes and PDF contracts, and the question “can customers on the old Team plan export their audit logs?”. A keyword engine would look for documents containing “Team”, “plan”, “export”, “audit” and “logs”. It would rank the pricing page highly, since it mentions all five words, and might miss the release note that says “log downloads are available on legacy plans”, because that note uses almost none of the key terms.
A natural language search system handles it in stages. Query understanding identifies the entity (the Team plan), the qualifier (old, which maps to legacy) and the action (exporting audit logs). Query expansion or query rewriting adds variants such as “legacy plan log download”. Semantic retrieval finds the release note by meaning, keyword retrieval keeps the pricing page and any document containing the exact phrase “audit logs”, and a reranker puts the release note first because it contains the answer. If a metadata filter on document type or date is available, the system can also prefer the most recent release note over an older one that said the feature was not yet available.
The difference shows up in where the answer sits. The pricing page was about the right topic. The release note held the fact. Retrieval that works at the level of the passage, called sub-document retrieval, makes the second outcome far more likely than retrieval that only scores whole documents.
What makes a natural language query hard
Several features of everyday questions cause trouble. Negation is one: “laptops that are not MacBooks” embeds close to “MacBooks”, because embeddings capture topic far better than logic. Numbers and comparisons are another, since “over £10,000” is a constraint to apply as a filter, and matching it as a phrase finds documents that merely mention the figure. Relative dates such as “last quarter” need to be resolved against today’s date. Pronouns and ellipsis in follow-up questions (“and for enterprise?”) only make sense with the previous turn in view.
Exact identifiers cause the opposite problem. A query that contains an order number, a SKU or a function name needs an exact match, and pure vector search can rank a near neighbour above the one document that contains the string. That is why most production systems keep keyword matching alongside embeddings and often apply typo tolerance only to the descriptive parts of the query. Long, multi-part questions (“compare our refund terms with last year’s and flag anything stricter”) may need query decomposition into several searches whose results are combined.
Scale changes behaviour too. As a corpus grows, more and more passages look similar to any given query, and similarity scores bunch together. This effect, sometimes called semantic collapse, is one reason natural language search that works on a demo set of a few hundred documents can degrade on a few hundred thousand.
Natural language search inside AI agents
A growing share of natural language search traffic comes from software rather than people. When an AI agent or a RAG pipeline needs information, the model writes a query in natural language and sends it to a search tool. The agent’s queries are often longer and more specific than a person’s, and the agent can retry with a different phrasing if the first results look thin. That loop, where the model plans searches and judges the results, is the basis of agentic search.
For agents, the quality of natural language search shows up directly in answer quality and cost. Results that are related but do not contain the fact lead to confident wrong answers, a form of hallucination that starts in retrieval rather than generation. Returning whole documents to be safe fills the context window and raises token spend. Precise, passage-level results with a source reference let the agent answer briefly and cite where the answer came from.
Measuring whether natural language search works
Evaluation starts with a set of real questions and the passages that answer them. From there the standard measures are precision and recall (how many returned results are relevant, and how many relevant results were returned), recall at k, and rank-aware scores such as mean reciprocal rank and NDCG. For question answering it also helps to check whether the top result contains the answer, which catches the on-topic but unhelpful results that similarity scores reward. Teams without labelled data can start by logging queries that got no click or were followed by a rephrase, which are reliable signs that a search missed.
Building natural language search
A typical build has an ingestion side and a query side. On the ingestion side, documents are parsed into text, split into chunks, embedded, and indexed in both a vector index and a keyword index, with metadata such as dates, authors and types stored for filtering. Images, audio and video need extra processing (OCR, transcripts, scene descriptions) before they can be searched in natural language at all, which is the territory of multimodal search. On the query side sit query understanding, hybrid retrieval, fusion of the two result lists (often with reciprocal rank fusion), reranking, and optionally answer generation.
Each piece is well understood, but keeping them working together is ongoing work: re-embedding when models change, re-indexing when documents change, and tuning chunk sizes for each content type. Teams weighing whether to build that stack or use a hosted service can compare options in our roundup of the best semantic search APIs, and against established engines in Exabase vs Elasticsearch and Exabase vs Algolia.
How Exabase supports natural language search
Exabase provides the retrieval layer for natural language search; the search interface and any query parsing are yours to build on top. Deep Search runs hybrid search by default: every text query combines semantic matching with typo-tolerant keyword matching, and wrapping a phrase in double quotes forces an exact match. Content stored as Resources is indexed automatically when it is written, including PDFs, notes, bookmarked web pages, transcribed audio and video scenes, so there is no embedding pipeline or chunking logic to maintain.
Results come back at the sub-document level: each hit carries matched chunks with relevance scores, page numbers for documents and timestamp ranges for audio and video. A precision parameter from 0 to 1 (default 0.3) trades recall against relevance per query, and filters narrow by resource kind, folder, tag and creation date, which is where constraints inferred from a question can be applied. The searching resources guide and the search API reference cover the parameters. Turning “last quarter” into a date filter stays in your application or agent, which then calls Deep Search with the structured result. Teams fixing retrieval that finds the topic but not the fact will find the pattern described under RAG accuracy, and builders of internal tools and customer support agents use the same approach.
Frequently asked questions
What is an example of natural language search?
Typing “restaurants near me that are open late and take bookings” into a search box is natural language search. The system has to recognise a place type, a location, an opening-hours constraint and a feature, instead of matching the words as a phrase. In business software, asking a knowledge base “what notice period do contractors have?” is the same idea.
How is natural language search different from semantic search?
Semantic search is one technique inside natural language search: retrieval by meaning using embeddings. Natural language search is the wider experience of asking questions in everyday language, which usually also involves query understanding, keyword matching for exact terms, filtering and ranking. The post what is semantic search covers the retrieval side in more depth.
Is natural language search the same as NLP?
No. Natural language processing is the broad field of getting computers to work with human language. Natural language search is one application of it, alongside translation, summarisation and classification.
Does natural language search need a large language model?
Not necessarily. Embedding models and entity extraction can support natural language queries without a generative model. Large language models help with harder query understanding and with writing answers, at the cost of more latency and spend per query.
Why does natural language search return irrelevant results?
Usually because similarity is not the same as relevance. Embeddings find passages about the same topic, and without keyword matching, filters for constraints and a reranker, the top results can be related to the question without answering it. Large corpora make this worse because many passages score almost equally.
Can natural language search work on images and video?
Yes, once the media has been turned into searchable signals such as captions, OCR text, transcripts and scene descriptions, or image embeddings. See multimodal search and the asset search solution for how that is set up.
Does Exabase offer natural language search?
Exabase offers the retrieval infrastructure for it. Deep Search accepts natural language queries and runs hybrid, sub-document retrieval over everything stored in a Base, and your application supplies the interface and any query parsing on top.
Related pages: AI search, conversational search, query understanding, semantic search, hybrid search, agentic search, information retrieval, semantic search vs keyword search for AI agents, best semantic search APIs, Deep Search