query_trace
Run a query and get back what actually happened, with the measured latency.
query_trace(text: str, **filters) -> QueryTraceResultquery_trace(request: QueryTraceRequest) -> QueryTraceResponseParameters
textstringrequiredThe query text.
entity_anchorstringoptionalAnchor the graph retriever on an entity.
kindsstring[]optionalRestrict to these memory kinds.
predicatesstring[]optionalRestrict to these predicates.
sessions64-bit integer[]optionalRestrict to these sessions.
time_rangeTimeRangeoptionalfromUnixMs and toUnixMs, both optional.
as_of_record_time_unix_nanos64-bit integeroptionalRead the space as it stood at that record time.
confidence_minfloatoptionalConfidence floor.
include_tombstonedbooleanoptionalDefaults to false.
include_supersededbooleanoptionalDefaults to false.
limitintegeroptionalResult cap.
retrieversstring[]optionalPin the lanes instead of letting the router choose.
fusionFusionConfigoptionalk, semanticWeight, lexicalWeight and graphWeight — override the reciprocal-rank fusion parameters.
Returns
trace_textstringalwaysWhat the read actually did, as text.
total_latency_msfloatalwaysMeasured, not estimated.
This is the verb for "what did it actually do, and where did the time go". For a trace attached to a normal read instead, ask recall for one — but note the size warning there.
Was this page helpful?