Skip to content
AnswerWell geo Documentation

Answerwell tools · 3 min read · Answerwell

Search Provider Knowledge Base

A knowledge base of search providers: semantic clusters, provenance of rules, versioning and retrieving supporting evidence.

A provider knowledge base brings together the official documents of search engines and AI services. The unit of knowledge is a claim with its source organization, edition, period of validity and a supporting passage. Matching words in the documents of two operators do not guarantee the same policy.

A robot fetches the documents, strips navigation, saves snapshots and splits the text at semantic boundaries. Passage representations are grouped into topics: crawling, indexing, markup, access and APIs. The basic k-means objective is:

min⁡{Cj,μj}∑j∑xi∈Cj∥xi−μj∥2.\min_{\{C_j,\mu_j\}}\sum_j\sum_{x_i\in C_j}\|x_i-\mu_j\|^2.

xix_i is an embedding, CjC_j a group and μj\mu_j its centroid. The choice of the number of groups and of the distance affects the result. In a long document, different passages may belong to different topics; a single shared label loses detail.

RAG combines retrieving external evidence with generation [1]:

p(y∣x)≈∑z∈Zkpη(z∣x)pθ(y∣x,z).p(y\mid x)\approx\sum_{z\in Z_k}p_\eta(z\mid x)p_\theta(y\mid x,z).

xx is the question, zz a passage, yy the answer and ZkZ_k a limited set of candidates. The formula describes a probabilistic setup; a specific generator may combine passages differently. Having retrieval does not guarantee that the source is used correctly.

Filters by operator, version and access rights are applied before the context reaches the generator. When documents contradict each other, both are shown with their dates. An announcement of a future feature does not replace the specification in force.

Check What is measured
Retrieval Recall of the needed rules
Version Share of answers with the right period of validity
Support Whether the claim matches the cited passage
Update Delay before a detected change shows up

KILT evaluates an answer together with the provenance of the knowledge [2]. For our own base, a useful panel covers direct questions, comparisons of operators, historical versions and questions without enough data. For example, after 20 documents change, measure when the new rules appear in answers and whether the ability to answer about the old version is lost.

In a long context, the position of the evidence affects whether it is used, as studied in Lost in the Middle [3]. So a larger window does not replace proper selection. An undated page, an incomplete snapshot and a moved URL need their own status. The W3C PROV provenance graph links a document, its processing and the result [4].

The base must preserve uncertainty: not finding a permission does not prove a prohibition, and not finding a prohibition does not prove a permission. An automatic summary of an update is checked against the original changed passage.

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. Patrick Lewis et al. Retrieval-Augmented Generation, 2020. Paper.
  2. Fabio Petroni et al. KILT, 2021. Benchmark.
  3. Nelson F. Liu et al. Lost in the Middle, 2023/2024. Paper.
  4. W3C. PROV-DM, 2013. Provenance standard.