S.S

Writing

Notes on LLM memory, RAG, Darija NLP, and building products in Morocco.

Read on Medium

2026-09-12

8 min

Modeling People as First-Class Entities in Agent Memory

Flat memory can't answer relational questions like 'how has my relationship with X been trending?'. The entity-layer design behind iRemember: alias resolution across languages, evolving profiles, sentiment timelines, and privacy by construction.

LLMMemoryKnowledge Graphs

2026-09-05

8 min

Compressing Conversation History Without Losing What Matters

Naive summarization destroys exactly the details users ask about later. The compression strategy behind iRemember: episode-vs-fact split, progressive oldest-first gating, temporal anchor preservation, and a probe-question evaluation method.

LLMMemoryRAG

2026-08-29

9 min

Inside a LangGraph Memory Pipeline: From Message to Memory

A teardown of the extraction pipeline behind iRemember: why LangGraph, how a chat message becomes structured memory candidates, deduplication, async processing, and the schema decisions that make retrieval work.

LLMMemoryLangGraphArchitecture

2026-08-22

11 min

LLM Agent Memory: The Complete Engineering Guide

Everything required to build production memory for LLM agents: the four memory operations, hybrid retrieval scoring, write control, history compression, person-entity modeling, and how 2026 benchmarks actually compare.

LLMMemoryRAGAgents

2026-07-12

6 min

Memory Is the Missing Layer of LLM Applications

Context windows keep growing, but they still forget. Why persistent, structured memory — not longer contexts — is what makes LLM assistants actually useful.

LLMMemoryRAG

2026-05-03

5 min

What Building a Multitenant ERP Taught Me About SaaS Architecture

Tenant isolation sounds like a database decision. It's actually an application-wide discipline. Lessons from shipping a multitenant ERP.

ArchitectureSaaSSpring Boot

2026-02-18

7 min

Notes on NLP for Moroccan Darija

Darija breaks every assumption standard NLP pipelines make: no standardized orthography, code-switching mid-sentence, and almost no labeled data. Field notes from building sentiment and transcription tools.

NLPDarijaResearch