{% extends "base.html" %} {% block title %}Multi-tenant ยท mneme{% endblock %} {% block content %}

Multi-tenant via namespaces

The same six queries against two tenants. Each tenant has its own namespace and its own LRU quota. tenant_a's cache hits do not help tenant_b: they share the embedder and the LLM, but their cached classifications are isolated.

tenant_a

Click the button to populate this tenant's cache.

tenant_b

Click the button to populate this tenant's cache.

How to read this

  1. Run tenant_a first — you'll see 6 misses (LLM calls). Every layer column says miss.
  2. Run tenant_a a second time — all 6 hit. Mostly exact; some semantic if you tweak the queries.
  3. Run tenant_b for the first time — 6 misses again, even though tenant_a already learned these. Namespaces are isolated.
  4. Run tenant_b a second time — all 6 hit. Now both tenants are warm.
{% endblock %} {% block scripts %} {% endblock %}