Persistent AI memory through local knowledge graph with entities, relations, and cross-conversation storage