Architecture
The AI layer enriches the application, but never becomes the application database.
Mnemos separates product UI, backend control, agent reasoning, ingestion, and knowledge storage so ownership stays clear and integration remains testable.
Key boundaries
The frontend communicates only with the backend API.
The backend owns authentication, tenancy, workflow state, persistence, audit, retries, and public progress.
The agent service performs retrieval and reasoning, then returns a strict AgentQueryResult.
Ingestion workers create chunks, embeddings, graph entities, and evidence provenance.
PostgreSQL holds application truth; pgvector and Neo4j support retrieval, not business authority.