Contextual-Memory-Graph-System

Contextual Memory Graph System Banner

🧠 Advanced AI Knowledge Graph with Contextual Memory


Mobile-optimized system that builds dynamic relationships from conversations and documents


πŸš€ What It Does

⚑ Quick Start

# Download and run
python contextual_memory_mvp.py

# Add memories
cms.add_memory("John works at Google and specializes in AI research.")

# Query the system  
results = cms.query_memory("Tell me about AI research")

🎯 Key Features

Feature Description
Entity Extraction Automatically identifies people, organizations, concepts
Relationship Detection Discovers connections like β€œworks at”, β€œcreated”, β€œuses”
Semantic Search Context-aware retrieval beyond keyword matching
Importance Scoring Memory relevance evolves based on access patterns

πŸ—οΈ Architecture

ContextualMemorySystem
β”œβ”€β”€ NLP Processor (Entity extraction, relationships)
β”œβ”€β”€ Context Weaver (Memory creation, linking)  
β”œβ”€β”€ Memory Retriever (Query processing, ranking)
└── Mobile Storage (SQLite backend, graph relations)

πŸ“Š Demo Results

System Stats: {'entities': 48, 'relationships': 15, 'memories': 5}

Query: 'Tell me about John'
  1. [Score: 0.348] John works at Google and specializes in AI research...
  2. [Score: 0.348] The AI algorithm that John developed uses Python...

βœ“ Database created: demo_knowledge.db (77,824 bytes)

🎯 Use Cases

πŸ›‘οΈ Privacy & Security

πŸ“± Requirements

πŸ“ Files

πŸ‘€ About the Author

Justin Lane
πŸ”— GitHub: @aiwithjusl
πŸ”— LinkedIn: Justin Lane
πŸ“¬ Email: aiwithjusl.dev@gmail.com


**⭐ Star this repo if you find it useful! ⭐** *Built for senior-level AI/ML engineering positions and enterprise consulting opportunities.*