Knowledge graph memory system with semantic search, temporal awareness and persistent memory for LLMs