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.
Representing queries and results
Section titled “Representing queries and results”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:
are the vectors of the query, a document and an answer; the weights within each group are normalized, and . 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.
The iterative centroid
Section titled “The iterative centroid”For a cluster , the centre is computed as:
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 resolution and the knowledge panel
Section titled “Entity resolution and the knowledge panel”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 |
Validation and limitations
Section titled “Validation and limitations”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.
Sources
Section titled “Sources”- Reimers N., Gurevych I. (2019). Sentence-BERT.
- Wu L. et al. (2020). Scalable Zero-shot Entity Linking.
- W3C (2020). JSON-LD 1.1.
- Google. About knowledge panels.