Why Spector?¶
This page compares Spector to popular vector databases and AI memory systems. We aim to be fair — every tool has strengths. Spector's sweet spot is embedded, zero-dependency, agent-native search with cognitive memory.
vs. Vector Databases¶
| Feature | Spector | Pinecone | Weaviate | Qdrant | Milvus | ChromaDB | pgvector |
|---|---|---|---|---|---|---|---|
| Deployment | Embedded JAR or Standalone | Cloud SaaS | Self-hosted / Cloud | Self-hosted / Cloud | Self-hosted / Cloud | Embedded / Server | PostgreSQL extension |
| Language | Java 25 | Managed | Go | Rust | Go/C++ | Python | C |
| Dependencies | Zero (JDK only) | N/A (SaaS) | Docker | Docker | Docker + etcd + MinIO | Python packages | PostgreSQL |
| SIMD acceleration | ✅ AVX2/AVX-512/NEON | ✅ (internal) | ✅ | ✅ | ✅ | ❌ | ✅ (pgvector 0.5+) |
| Off-heap / Zero GC | ✅ Panama FFM | N/A | Partial | ✅ (Rust) | Partial | ❌ | N/A |
| Hybrid search | ✅ HNSW + BM25 + RRF | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ |
| Built-in MCP server | ✅ 13 tools | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Cognitive memory | ✅ 4-tier, bio-inspired | ❌ | ❌ | ❌ | ❌ | ❌ | ❌ |
| Quantization | SVASQ-8/4, IVF-PQ | ✅ | ✅ BQ | ✅ SQ/PQ | ✅ IVF-PQ/SQ | ❌ | ❌ |
| Spring AI integration | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ |
| Distributed mode | ✅ gRPC fan-out | ✅ (managed) | ✅ | ✅ | ✅ | ❌ | ❌ |
| GPU acceleration | ✅ CUDA via Panama | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ |
| License | Apache 2.0 | Proprietary | BSD-3 | Apache 2.0 | Apache 2.0 | Apache 2.0 | PostgreSQL |
When to choose Spector¶
- ✅ You want an embedded vector DB (the "DuckDB of Vector DBs") — no Docker, no servers, just a JAR
- ✅ You need MCP agent integration out of the box — Claude Desktop, Cursor, custom agents
- ✅ You're in the Java ecosystem and want native performance without JNI/FFI wrappers
- ✅ You need cognitive memory — agents that remember, forget, and consolidate
- ✅ Zero dependencies matters — no Python, no Docker, no external services
When to choose something else¶
- ❌ You need a managed cloud service → Pinecone
- ❌ You're building in Python and want the simplest path → ChromaDB
- ❌ You need multi-tenancy at scale with dedicated infrastructure → Weaviate, Qdrant, Milvus
- ❌ You already have PostgreSQL and want to add vectors → pgvector
vs. AI Memory Systems¶
| Feature | Spector Memory | Mem0 | Letta (MemGPT) | Zep | Stanford Generative Agents |
|---|---|---|---|---|---|
| Temporal decay | ✅ Power-law (configurable) | ❌ None | ❌ Agent-managed | ✅ Limited | ✅ Exponential |
| Recall latency (1M) | 0.13ms | 50–200ms | 100ms+ | 50–150ms | N/A (research) |
| Scoring model | ACT-R inspired | Vector similarity | Agent-managed | Hybrid | Additive |
| Two-Factor strengthening | ✅ Bjork model | ❌ | ❌ | ❌ | ❌ |
| Emotional valence | ✅ Amygdala model | ❌ | ❌ | ❌ | ❌ |
| Sleep consolidation | ✅ Hippocampus model | ❌ | ❌ | ❌ | ❌ |
| Hebbian associations | ✅ Co-activation graph | ❌ | ❌ | ❌ | ❌ |
| GC pressure | 0.01% (off-heap) | High (Python) | High (Python) | Moderate | N/A |
| MCP integration | ✅ Built-in | ❌ | ❌ | ❌ | ❌ |
| Infrastructure | Zero (embedded JVM) | Redis + API | PostgreSQL + API | PostgreSQL + API | Research code |
| Language | Java | Python | Python | Python/Go | Python |
Spector Memory's unique capabilities¶
- Only system combining power-law decay + Two-Factor strengthening + emotional valence in a single scoring formula
- 15× faster recall than the 2ms target (0.13ms at 1M memories)
- Zero GC — 100% off-heap Panama storage with ≤0.01% overhead
- Biologically-inspired — models based on peer-reviewed cognitive science (ACT-R, Bjork, Ebbinghaus, Hebb)
- SIMD-fused scoring — similarity × importance × decay computed in a single vectorized pass
Benchmark Highlights¶
All numbers measured on Intel Core Ultra 9 285K, Java 25, AVX2 256-bit.
| Benchmark | Result | Notes |
|---|---|---|
| Vector search p50 | 88–143µs | 10K–100K docs, HNSW M=16 |
| Cognitive recall at 1M | 0.13ms p50 | 15× better than 2ms target |
| Peak QPS (16 threads) | 61,011 | Concurrent vectorSearch |
| GC overhead | 0.01% | 1 pause / 100K searches |
| vs. Python MCP servers | 23–113× faster | In-process SIMD, zero network |
| SVASQ-8 compression | 4× smaller | 99.5%+ recall preserved |
| IVF-PQ compression | 32× smaller | 97%+ recall preserved |
Corrections welcome — if any comparison is inaccurate, please open an issue.