Documentation Index
Fetch the complete documentation index at: https://supermemory.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
What is MemScore?
MemScore is a composite metric that captures three dimensions of memory provider performance in a single line:Components
| Component | What it measures | Source |
|---|---|---|
| Quality | Answer accuracy as a percentage | (correct / total) * 100 from judge evaluations |
| Latency | Average search response time in milliseconds | Mean of all search phase durations |
| Tokens | Average context tokens sent to the answering model | Client-side token count of retrieved context per question |
MemScore is not a single number — it’s a triple. This is intentional. Collapsing quality, latency, and cost into one score hides important tradeoffs. A provider with 90% accuracy at 5,000 tokens is very different from one with 90% accuracy at 500 tokens.
How token counting works
MemoryBench counts tokens client-side using provider-specific tokenizers:| Model provider | Tokenizer | Method |
|---|---|---|
| OpenAI | js-tiktoken | Exact count using o200k_base or cl100k_base encoding |
| Anthropic | @anthropic-ai/tokenizer | Exact count using Anthropic’s tokenizer |
| Approximation | Math.ceil(text.length / 4) |
promptTokens— Total tokens in the full prompt (instructions + context + question)basePromptTokens— Tokens in the prompt without any retrieved contextcontextTokens— Tokens in just the retrieved context string
contextTokens because it isolates what the memory provider actually contributed.
Where MemScore appears
CLI output
After a benchmark run completes, MemScore is printed in the summary:Web UI
The MemScore card appears at the top of the run overview page. Per-question token counts are shown next to each model answer in both the question list and detail views.Report JSON
Thereport.json file includes both a display string and structured components:
memscoreComponents for programmatic comparisons — it avoids parsing the display string.
Comparing providers
MemScore is most useful when comparing providers on the same benchmark:| Provider | MemScore |
|---|---|
| Provider A | 88% / 145ms / 1200tok |
| Provider B | 82% / 80ms / 2400tok |
| Provider C | 85% / 110ms / 1800tok |
Backward compatibility
Runs from before MemScore was added will still work. If token data is not present in the checkpoint, thememscore, memscoreComponents, and tokens fields will be undefined in the report. The CLI and web UI gracefully skip the MemScore display when data is unavailable.