Sub topic 2
The kinds of sub-queries a system may generate
This chapter assumes you know how keyword SEO works, have used an AI search tool, and can read a simple flowchart. Vendors rarely publish their exact pipelines, so treat the details below as common designs, not confirmed behavior.
Kinds of sub-queries
A fan-out system may rewrite one prompt into several sub-queries. Common types include:
- Narrower queries that add a constraint, such as price or fit.
- Comparative queries, such as "stability vs motion control shoes."
- Definitional queries that explain a term.
- Expert-angle queries, such as "what would a podiatrist advise."
Lexical retrieval
Lexical retrieval matches the words in the query against an index. Methods such as BM25 weight terms by how rare and how frequent they are. This rewards pages that use the exact terms a searcher types. Model numbers and specific phrases gain the most.
Semantic retrieval
Semantic retrieval converts text into embeddings, which are lists of numbers that represent meaning. A query and a passage with similar meaning land close together, even with different words. This rewards pages that answer the underlying question clearly.
Hybrid retrieval
Hybrid retrieval runs both methods and combines their scores. Lexical search catches exact terms that embeddings can blur, and semantic search catches paraphrases. Content that uses the exact term and also explains it clearly tends to appear across more sub-queries.
Passages and chunking
Systems rarely score a whole page as one unit. Chunking splits a page into passages, often one section each. Each passage is scored on its own, so a section that answers a sub-question in its first lines is easier to retrieve than an answer buried deep in a long article.
Merging the results of many searches
Each sub-query returns its own ranked list, so the system must merge them. One published method, reciprocal rank fusion, adds 1 divided by (k plus rank) for each list where an item appears. A passage that ranks well across several lists rises, even if no single list placed it first.
Reranking: choosing the best passages
A reranker reads the query and each candidate passage together and scores relevance more carefully. It is slower than the earlier steps, so systems apply it only to a short list. Only the top passages usually reach the answer writer.
Exercise
Your page ranks for "running shoes for flat feet" but not for "stability vs motion control shoes." Name one content change that closes this gap, and say which retrieval method it helps.
Show answer
Add a passage that compares stability and motion control shoes in plain terms, with that phrase in its heading. The exact phrase helps lexical retrieval, and the clear comparison helps semantic retrieval.