Skip to main content
Retrieval: search over the context tree and the concept graph, using a Decider and an Embedder.

retrieval.calibrate

Choosing SearchConfig.min_cosine for one embedder and one index.

Calibration

calibrate

retrieval.searcher

Search over the context tree and the concept graph (docs/DATASTURCTURE.md section 6).

ConceptSource

What the searcher reads. Construct with ConceptSource(*args, **kwargs).

SearchConfig

Searcher

Construct with Searcher(source: ConceptSource, decider: Decider, embedder: Embedder \| None = None, *, ontology: Ontology \| None = None, resolvers: Mapping[str, Resolver] \| None = None, config: SearchConfig \| None = None, min_trust: Literal['unverified', 'machine', 'human'] = 'unverified', resolve_timeout_s: float = 2.0, clock=<function Searcher.<lambda> at 0x1065ae340>).

SearchStats

What the last search did, for tests and for measuring cost.