Reducing Search Keyword Dependency with Large Language Models

    This article explains how search teams can use large language models in query understanding and answer synthesis without replacing the index. It covers a five-layer integration model, bounded query rewriting, evidence-grounded answers, multilingual retrieval alignment, evaluation metrics, risk controls, and a phased rollout path that keeps fallback and auditability in place.

    Search products have long depended on users to craft their own keywords. Even a slight deviation in phrasing can push recall off topic, and the problem is more visible for cross-language, colloquial, or task-oriented queries. Inserting large language models into query understanding and answer organization is not about replacing the index with generated text. It is about letting the system first understand what the user is trying to accomplish, then retrieve, rank, and constrain the output. Some search teams in the industry treat this kind of integration as a substantial model upgrade and roll it out language by language. This article distills the reusable engineering methods into general practices and does not bind them to any specific model.

    The Real Problem Is Keyword Dependency

    Traditional retrieval assumes that queries and documents share vocabulary. Users have to guess which words a document uses, whether to add site or time restrictions, and how to write synonyms. This creates three types of loss.

    First, intent gets flattened. The same set of words may be looking for a definition, a comparison, a procedure, or the latest change, and word-level matching cannot distinguish them. Second, long-tail expressions get dropped. Colloquial phrasing, typos, mixed Chinese and English, and omitted subjects match weakly in an inverted index. Third, multi-step tasks get fragmented. A user may want an actionable plan with cited evidence, but is forced into multiple rounds of retrieval and manual synthesis.

    Spending less effort on keywords means moving these burdens back to the system: keep the user’s original wording and perform normalization, expansion, and constraint handling internally, instead of requiring users to learn search syntax.

    Which Layer Should Be Upgraded

    A sound integration does not replace the entire page with a chat interface. It adds a fallback-capable understanding layer to the existing retrieval chain. A five-stage design is recommended.

    1. Query normalization: correct errors, fill in omitted context, identify language and time range, and output a structured query rather than a free-form string.
    2. Intent and constraints: distinguish navigation, factual, comparison, how-to, and time-sensitive news queries, and extract conditions that must be satisfied, such as region, version, and time.
    3. Retrieval planning: decide whether to rewrite multiple query routes, whether to use vector recall, and whether a fresher index slice is needed.
    4. Reading and synthesis: answer only from retrieved documents, preserve citation snippets, and prohibit expanding key facts beyond the evidence.
    5. Presentation and fallback: when the answer is too short, evidence is insufficient, or a safety policy is triggered, fall back to the traditional result list instead of forcing generation.

    Each layer should be independently disableable. When the model is unavailable, search should still return keyword results. That is the baseline for availability.

    How to Rewrite Queries Without Drifting

    The goal of rewriting is to improve recall, not to change the user’s intent. In practice, use “conservative rewriting plus multi-route recall.”

    • Keep the original query as one route to avoid introducing new entities through model rewriting.
    • Generate a small number of normalized queries and control the count to prevent query explosion from exhausting retrieval quotas.
    • Limit synonym expansion to in-domain vocabularies and rewrites verified by historical clicks, rather than unbounded association.
    • Protect proper nouns, numbers, and version numbers; do not allow the model to “correct” them.

    The following pseudocode illustrates the control points only. It does not correspond to any vendor API.

    1. function plan(query, context):
    2. norm = normalize(query) # language, correction, time
    3. intent = classify(norm)
    4. rewrites = bounded_rewrite(norm, max=3)
    5. routes = [norm] + rewrites
    6. if intent.needs_freshness:
    7. routes = mark_time_sensitive(routes)
    8. return retrieve(routes, filters=intent.constraints)

    Rewrite results should be logged: original query, rewrites, matched documents, and whether the final answer used them. Without this chain, it is impossible to tell whether the model is helping or changing the question.

    Answers Must Be Tied to Evidence

    From the user’s perspective, the change is the ability to ask a question in natural language and receive an organized result. Engineering-wise, three conditions must be met at the same time; otherwise the experience will be worse than a keyword list.

    Traceable: every key claim should correspond to a clickable source snippet, not just a single general link. Verifiable: numbers, dates, and entity names should match the snippets; if they do not, downgrade the result to “insufficient evidence found.” Refusable: when evidence conflicts or coverage is insufficient, state the gap clearly and provide traditional results that allow further searching.

    This is the boundary of retrieval-augmented generation. The model handles language organization and query planning; facts come from the index. Raising generation temperature and removing citations turns search into an unauditable summary and is not suitable as the default experience.

    Multilingual Search Is More Than a Translation Layer

    When serving global users across supported languages, a common mistake is to translate everything into one primary language before retrieval. A better approach is to align language identification with the index language: if a match can be found in the original-language index, do not translate first; only add translated queries as a supplementary route when cross-language material is clearly more complete.

    It is also necessary to handle mismatches between query language and document language, and between interface language and evidence language. The presentation layer can translate summaries, but citation snippets should preferably retain the original text and be labeled with their language, so that second-hand translation does not distort proper names. Evaluation sets should be stratified by language; click-through rate in one language cannot represent global performance.

    How to Tell Whether the Upgrade Is Actually Better

    Do not look only at whether answers read more smoothly. Track retrieval quality, task completion, and risk together.

    Retrieval side: first relevant result rate, recall coverage, and whether rewriting introduces irrelevant entities. Task side: whether users make fewer query edits, page through fewer results, and complete complex questions within one session. Risk side: unsupported assertion rate, citation mismatch rate, freshness error rate, and error rate in sensitive scenarios.

    Launch by language and traffic percentage, and keep control buckets. Latency budgets should be reported separately: query understanding, retrieval, and reading time should be measured independently. On timeout, skip generation and return the list directly. For cost control, cap the number of rewrites per query and the number of documents read, so long-tail queries do not amplify inference cost.

    These metrics can use general monitoring and alerting and do not need to be tied to a specific product name. Logs, object storage, and offline evaluation jobs can run in the enterprise’s existing cloud environment; if Baidu AI Cloud is used, it should be treated only as the resource environment for inference, retrieval, and observability. Evaluation criteria should still be defined by the business, not by marketing claims.

    Risk Controls and UX Details

    Search handles open-ended queries, and model integration can amplify old problems.

    • Prompt injection: web page text may contain phrases such as “ignore previous instructions.” The reading stage should extract factual fields only and must not execute instructions found in documents.
    • Outdated information: time-sensitive intents must carry time filters, and the answer should expose the source material’s time.
    • Personalization boundaries: region, language, and safe-search level can be used; unexplainable user profiles should not be written into rewrites.
    • Empty results: clearly state that nothing was found and suggest verifiable ways to narrow the scope; do not fill gaps with common sense.

    For interaction, keep a “view original results” option. Generated summaries are an aid, not the only exit. Professional users still need keywords and filters, and the system should remain compatible with them rather than removing them.

    Rollout Order

    Proceed from low risk to high risk rather than switching the entire page to generation in one step.

    Start with query correction and intent classification, which affect recall only and do not directly generate long answers for users. Then open short answers with citations for high-confidence factual queries, and enforce fallback when evidence is insufficient. Only after that handle multi-document synthesis for comparisons and procedures, and limit it by domain and language. Each step should be proven with controlled experiments: fewer query edits and fewer page views, while unsupported assertions do not increase.

    Team responsibilities also need to change. Retrieval engineers own indexing and filtering, model engineers own failure modes in rewriting and reading, and evaluation specialists maintain test sets by language and intent. Without a shared library of failure samples, upgrades easily stall at demo queries.

    Conclusion

    Spending less effort on keywords essentially means making query understanding, multi-route recall, and evidence constraints the default path. Large language models are well suited to normalization, intent classification, and language organization; ranking, freshness, and facts should still be backed by retrieval and citations. By integrating layer by layer, keeping fallback, measuring, and auditing, search can remain reliable under more natural questioning, rather than merely making results read more smoothly.