A structured AI memory system powered by Retrieval-Augmented Generation (RAG) and graph-based memory storage.
Archived is an AI-driven memory architecture that transforms user interactions into a persistent, structured knowledge graph. It allows an LLM (Gemini API) to store, retrieve, and reason over past information like a long-term memory system.
Instead of treating each query independently, Archived builds continuity across conversations.
Archived turns unstructured input into structured memory:
User Input → Ingestion → Memory Graph → Retrieval → Reasoning (Gemini) → Response
Each interaction becomes a node, connected through semantic relationships, enabling long-term contextual awareness.
##System Architecture
- Extracts entities, keywords, and metadata
- Converts raw input into structured memory nodes
- Maintains graph structure
- Creates relationships between nodes
- Searches memory graph for relevant context
- Returns top-k relevant nodes
- Uses Google Gemini API as the reasoning engine
- Combines retrieved memory + new input
- Generates structured response
- Node importance is updated based on how frequently the user interacts with it.
- Frequently accessed nodes gradually strengthen over time. *High-importance nodes may be promoted to long-term memory. *Infrequently accessed nodes slowly fade in relevance.
Archived demonstrates how AI systems can evolve from stateless chatbots into memory-aware agents capable of:
- Personalized reasoning
- Context retention over time
- Structured knowledge accumulation
- Vector database integration
- Semantic embeddings for retrieval
- Memory decay / importance scoring
- Visual graph UI for memory exploration
- Multi-user memory isolation
“A model is only as intelligent as what it remembers.”
Archived focuses on giving AI systems a structured long-term memory layer, bridging reasoning and persistence.
git clone https://github.com/pranalisree/archived.git
cd archivedpython -m venv venv
source venv/bin/activate # Mac/Linux
venv\\Scripts\\activate # Windowspip install -r requirements.txtIf requirements.txt is not available, install core dependencies manually:
pip install google-generativeai numpy networkxYou must configure your Google Gemini API key:
Create a .env file in the root directory:
GEMINI_API_KEY=your_api_key_here
Or export it dir
MIT License