KNOLO / HUBPublishknolo.dev → Runtime
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);
}

02Semantic 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.