Skip to content
AnswerWell geo Documentation

Answerwell tools · 3 min read · Answerwell

Query Cluster & Knowledge Panel

Query clustering and Knowledge Panel alignment: embeddings, iterative centroids, entity resolution and fact control.

The tool combines two related tasks: finding the semantic centre of a group of queries and aligning brand facts in knowledge panels. The first works with user intent and search results, the second with the identity of entities. Documents on similar topics do not necessarily describe the same company.

Sentence-BERT trains vector representations of sentences that can be compared and clustered [1]. For normalized vectors, cosine similarity equals the dot product. In a research pipeline, the representation of a question can be combined with the representations of the pages and AI answers it retrieves:

zq=norm⁡(αeq+β∑jajedj+γ∑kbkeAk).z_q=\operatorname{norm}\left(\alpha e_q+\beta\sum_j a_j e_{d_j}+\gamma\sum_k b_k e_{A_k}\right).

eq,edj,eAke_q,e_{d_j},e_{A_k} are the vectors of the query, a document and an answer; the weights within each group are normalized, and α,β,γ≥0\alpha,\beta,\gamma\geq0. This is the tool’s design model, not a disclosed formula of an external search engine. A high weight on the current results can entrench their errors and crowd out rare intents.

For a cluster CC, the centre is computed as:

μC=norm⁡(∑q∈Cwqzq),q∗=arg⁡max⁡q∈Czq⊤μC.\mu_C=\operatorname{norm}\left(\sum_{q\in C}w_qz_q\right),\qquad q^*=\arg\max_{q\in C}z_q^\top\mu_C.

q∗q^* is the real query closest to the centre. Unlike the mean vector, it can be read. After the results are updated, the representations are recomputed and the stability of the cluster’s membership is checked. Stopping conditions are set in advance: a small share of moves, stable centres or an iteration limit. The number of clusters and the outlier threshold are chosen by how well they separate intents, not by how convenient they are for the editorial plan.

The passage written for a page should answer the typical task of the cluster and keep its facts verifiable. Maximum vector similarity does not prove that the answer is complete. For a group of “cost”, “pricing plan” and “refund”, one shared centre may hide three different scenarios; the cluster is then split.

Entity linking connects a mention to a specific record in a knowledge base. BLINK uses fast candidate retrieval with a bi-encoder followed by more precise re-ranking of pairs [2]. The choice takes into account not only the name, but also the domain, geography, legal name, identifiers and context.

JSON-LD makes it possible to publish linked data and stable identifiers [3]. A published graph does not control an external panel directly, however. Google describes the knowledge panel as an automatically generated view of an entity; the option to suggest a change does not guarantee it will be accepted [4].

Field Check
Name and aliases Distinguishing the brand, the legal entity and the product
Website and profiles Belong to one entity, no organizations with the same name
Description and category Match the actual activity
Dates and location Source, currency, regional applicability

Clustering is evaluated on annotated pairs of intents and on stability when the sample changes. Entity linking is evaluated by the share of correctly resolved mentions and by the ability to abstain when a mention is ambiguous. Errors of the two stages are kept apart: a good cluster does not fix a wrong entity.

Embedding versions, the search panel, language, date, clustering parameters and the list of editorial decisions are stored. A comparison with simple lexical grouping shows whether the complexity is justified. Duplicate fragments in the results are deduplicated so that syndicated text does not receive multiple weight.

Reproducibility and how Answerwell applies it

Section titled “Reproducibility and how Answerwell applies it”

In the project’s research loop, Answerwell’s own robots and ML/DL models are applied to brand data. The grounds for each architecture, corpus versions, training parameters and compute are recorded according to the general methodology. Public, acquired and internal data each keep their own provenance; describing a method does not mean a proven match with the closed weights of an external platform.

The test set is separated from training by time and by object. Raw observations, failed attempts and unknown values are kept. Models are compared on the same data and budget, with the sample size and errors by segment reported. Illustrative calculations in this article are not a claim about an experiment Answerwell has carried out.

  1. Reimers N., Gurevych I. (2019). Sentence-BERT.
  2. Wu L. et al. (2020). Scalable Zero-shot Entity Linking.
  3. W3C (2020). JSON-LD 1.1.
  4. Google. About knowledge panels.