Skip to main content

Module query

Module query 

Source
Expand description

Query service - answers questions using memory context.

The query pipeline is:

  1. Build a WorkingRepresentation via RepresentationService (bucketed memories).
  2. Flatten to deduplicated memories with bucket provenance.
  3. Run phase detection via nexus_lephase::PhaseAnalyzer (CPU-only, fast).
  4. Build a phase-grouped, lineage-annotated context string.
  5. Generate an answer via LLM, attaching lineage metadata.

Structs§

QueryService

Functions§

introspect_query
Introspect query ranking decisions without requiring an LLM client.