MemorySync
Advanced / Response inspector

Inspect Query Results

When results look wrong, read the response you already have. Every field below is returned by a query and tells you something specific.

Inspector

Inspect the query response

What it tells you

The ranked records returned for your query. Empty is a valid answer, not an error.

result = ms.query("How should answers be formatted?", k=5)

print(result.query_intent, result.latency_ms)
for memory in result.memories:
    print(memory.id, memory.score, memory.tags, memory.text[:60])
Method

Work the problem in order

  1. Confirm the scope: same project and same end user as the write.
  2. Fetch the record directly with get(id) to prove it exists.
  3. Remove filters, then add them back one at a time — a tag typo looks exactly like missing data.
  4. Rephrase the query the way a user would ask it, and compare the returned ids.
  5. Only then look at k and traversal_depth.
Copy and run

Copy a working example

result = ms.query("How should answers be formatted?", k=5)
print(result.query_intent, result.latency_ms)
for memory in result.memories:
print(memory.id, memory.score, memory.tags, memory.text[:60])
Was this page helpful?