{"slug": "memoria-a-self-evolving-personal-ai-with-human-like-memory", "title": "Memoria – A Self‑Evolving Personal AI with Human‑like Memory", "summary": "A developer built Memoria, a personal AI with human-like memory that remembers, forgets, and evolves by extracting personal facts, resolving contradictions, and reflecting on knowledge. The system was developed for the Qwen Cloud Hackathon and deployed on Alibaba Cloud using a three-tier memory architecture with hybrid scoring, decay, and conflict resolution. Memoria integrates with Qwen agents via a MemoryAgent API and is available as an open-source project.", "body_md": "Most AI assistants forget everything after each session. Memoria remembers, forgets, and evolves—extracting personal facts, resolving contradictions, and reflecting on what it knows. This post shares the journey of building a production‑ready MemoryAgent for the **Qwen Cloud Hackathon, Track 1**.\n\nEvery conversation with a typical chatbot starts from zero. You tell it you're allergic to peanuts on Monday, and by Wednesday it recommends pad thai with crushed peanuts. The model doesn't forget; it never had long‑term memory in the first place. Without durable knowledge about who you are, real personalisation is impossible.\n\nWe built **Memoria** to solve that problem: a personal AI with human‑like memory that remembers what matters, forgets what fades, resolves contradictions, and evolves its understanding of you over time. Real memory isn't a bigger context window—it's extraction, prioritisation, decay, consolidation, and reflection. The hackathon challenged us to deliver a memory‑efficient, production‑grade MemoryAgent, and we built one from the ground up on Alibaba Cloud.\n\nMemoria organises knowledge in three deliberate tiers:\n\n`text-embedding-v3`\n\n, ranked by hybrid scoring, and subject to decay, consolidation, and conflict resolution.Other key features:\n\n`get_core_memories`\n\n, `get_user_preferences`\n\n, `forget_memory`\n\n, and `strengthen_memory`\n\nto any Qwen agent.**Backend**: Python FastAPI, SQLAlchemy async, PostgreSQL 16 + pgvector for hybrid vector search.\n\n**Memory pipeline**: DashScope – Qwen‑Plus for chat/extraction/conflict/reflection, Qwen‑Max for consolidation, `text-embedding-v3`\n\nfor embeddings.\n\n**Background workers**: Celery handles memory ingestion, decay, and consolidation with Redis as the broker.\n\n**Frontend**: React + Vite, `react-markdown`\n\n, `remark‑math`\n\n, `rehype‑katex`\n\n, custom dark theme.\n\n**Deployment**: Docker Compose, Terraform for Alibaba Cloud (ECS, ApsaraDB, Redis), Let's Encrypt via Nginx.\n\n`qwen3-plus`\n\nnot accessible; standardised on `qwen-plus`\n\n.Voice input, multi‑agent collaboration via MCP, a mobile companion, advanced memory visualisations, and fine‑tuning Qwen on memory tasks.\n\n**Try it yourself:** [https://memoria.imawais.engineer](https://memoria.imawais.engineer)\n\n**GitHub:** [imawais-engineer/Memoria](https://github.com/imawais-engineer/Memoria)\n\nBuilt with ❤️ on **Alibaba Cloud** and **Qwen Cloud**.", "url": "https://wpnews.pro/news/memoria-a-self-evolving-personal-ai-with-human-like-memory", "canonical_source": "https://dev.to/imawais/memoria-a-self-evolving-personal-ai-with-human-like-memory-34p", "published_at": "2026-07-18 15:22:47+00:00", "updated_at": "2026-07-18 15:59:38.469053+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "ai-agents", "ai-products", "developer-tools"], "entities": ["Memoria", "Qwen Cloud Hackathon", "Alibaba Cloud", "Qwen", "DashScope", "PostgreSQL", "Redis", "FastAPI"], "alternates": {"html": "https://wpnews.pro/news/memoria-a-self-evolving-personal-ai-with-human-like-memory", "markdown": "https://wpnews.pro/news/memoria-a-self-evolving-personal-ai-with-human-like-memory.md", "text": "https://wpnews.pro/news/memoria-a-self-evolving-personal-ai-with-human-like-memory.txt", "jsonld": "https://wpnews.pro/news/memoria-a-self-evolving-personal-ai-with-human-like-memory.jsonld"}}