queryTrace
Run a query and get back what actually happened, with the measured latency.
queryTrace(input: QueryInput): Promise<QueryTraceResult>queryTrace(request: QueryTraceRequest): Promise<QueryTraceResponse>Parameters
textstringrequiredThe query text.
entityAnchorstringoptionalAnchor the graph retriever on an entity.
kindsstring[]optionalRestrict to these memory kinds.
predicatesstring[]optionalRestrict to these predicates.
sessions64-bit integer[]optionalRestrict to these sessions.
timeRangeTimeRangeoptionalfromUnixMs and toUnixMs, both optional.
asOfRecordTimeUnixNanos64-bit integeroptionalRead the space as it stood at that record time.
confidenceMinfloatoptionalConfidence floor.
includeTombstonedbooleanoptionalDefaults to false.
includeSupersededbooleanoptionalDefaults 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
traceTextstringalwaysWhat the read actually did, as text.
totalLatencyMsfloatalwaysMeasured, 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?