{ "schema_version": 1, "diagram_type": "architecture", "meta": { "title": "Poimen Memory System", "quality_profile": "showcase", "viewBox": [1060, 560] }, "components": [ { "id": "agent", "type": "external", "label": "AI Agent", "sublabel": "LLM client", "pos": [40, 220], "size": [130, 60] }, { "id": "api", "type": "backend", "label": "Memory API", "sublabel": "actix-web :8080", "pos": [270, 220], "size": [140, 60], "tag": "Rust" }, { "id": "auth", "type": "security", "label": "Authentik", "sublabel": "OIDC / JWT", "pos": [270, 60], "size": [140, 60] }, { "id": "worker", "type": "backend", "label": "Ingest Worker", "sublabel": "LLM pipeline", "pos": [540, 220], "size": [140, 60] }, { "id": "llm", "type": "external", "label": "LLM", "sublabel": "ornith:35b", "pos": [540, 380], "size": [140, 60] }, { "id": "pgvector", "type": "database", "label": "pgvector", "sublabel": "CNPG cluster", "pos": [540, 60], "size": [140, 60], "tag": "HNSW" }, { "id": "embed", "type": "external", "label": "Embeddings", "sublabel": "nomic-embed", "pos": [810, 220], "size": [140, 60] } ], "boundaries": [ { "kind": "region", "label": "K8s: poimen", "wraps": ["api", "auth", "worker", "pgvector", "embed"] } ], "connections": [ { "id": "c1", "from": "agent", "to": "api", "label": "HTTP", "variant": "emphasis" }, { "id": "c2", "from": "api", "to": "auth", "label": "verify JWT", "variant": "security" }, { "id": "c3", "from": "api", "to": "worker", "label": "enqueue", "labelAt": [445, 178] }, { "id": "c4", "from": "worker", "to": "llm", "label": "extract", "labelAt": [630, 356] }, { "id": "c5", "from": "worker", "to": "pgvector", "label": "persist" }, { "id": "c6", "from": "worker", "to": "embed", "label": "embed", "variant": "dashed" }, { "id": "c7", "from": "api", "to": "pgvector", "label": "search", "variant": "emphasis" } ], "cards": [ { "dot": "emerald", "title": "Ingest", "items": ["Conversations ingested via HTTP", "LLM extracts entities + relationships", "Temporal graph persisted to pgvector"] }, { "dot": "cyan", "title": "Retrieval", "items": ["HNSW cosine similarity search", "BFS graph traversal for context"] }, { "dot": "rose", "title": "Auth", "items": ["Authentik OIDC JWT verification", "SOPS-encrypted K8s secrets"] } ] }