Developer Playground
Explore what SEMQ unlocks in practice: cheaper storage and queries, the option to store embeddings in traditional databases, and the ability to mine symbolic patterns directly on the codes.
A. Storage & Query Cost Calculator
Estimate how much you can save moving from FP32 / INT8 to SEMQ for embeddings at scale.
FP32
Storage: $0.29/mo
Queries: $259.20/mo
Total: $259.49/mo
INT8
Storage: $0.07/mo
Queries: $181.44/mo
Total: $181.51/mo
SEMQ (6 bits)
Storage: $0.05/mo
Queries: $51.84/mo
Total: $51.89/mo
Savings vs FP32: $207.59 / mo (80.0%)
Numbers are illustrative; plug your own infra prices + SEMQ metrics for precise estimates.
B. Replace / Complement Vector DBs
SEMQ codes can be stored in traditional databases (Postgres, Mongo, SQLite) and queried with Hamming-like distance or symbolic indexes, reducing dependency on dedicated vector DBs.
-- Store SEMQ codes in Postgres CREATE TABLE semq_embeddings ( id TEXT PRIMARY KEY, code BYTEA, -- packed SEMQ symbols payload JSONB ); -- Example: Hamming-like search using extension / custom op SELECT id, payload FROM semq_embeddings ORDER BY semq_hamming_distance(code, :query_code) LIMIT 10;
Real implementations would use native extensions or UDFs for SEMQ distance, but the idea is simple: store symbolic codes and sort by a fast symbolic distance.
C. Pattern Mining on Symbolic Codes
Once embeddings live in a symbolic domain, you can search for recurring patterns in the SEMQ codes, like motifs in DNA sequences or time-series.
Example SEMQ code:
Pattern to detect:
[+3, -1, +3]
Occurrences at positions: 0, 6
In a real system, you could mine millions of SEMQ codes for frequent motifs, symbolic clusters, and temporal patterns that are hard to see in raw FP32 floats.