KNOLO / HUBPublish
GUIDE / QUERY

Query a pack

Default to deterministic lexical retrieval and keep the result traceable to a source section.

01A retrieval query

Queries return ranked hits with a lexical score, heading, namespace, stable identifier, and a content snippet.

const hits = query(pack, "refund window", { topK: 5 });

for (const hit of hits) {
  console.log(hit.id, hit.score);
}

02Hub playground

The pack playground runs query / queryWithReceipt in the browser against the Blob bytes. The receipt sha256 is the listing digest. Network traffic is a Blob GET, not a Hub /api query. Hub does not store queries; receipts live in this browser session.

03Semantic reranking is optional

An optional semantic layer can be added by a host when appropriate. It is not required to mount a Knowledge Image or to use the Hub playground.