OutstandingOm/knowledge-graph-env
1
Self‑Evolving Knowledge Graph Environment for Continuous Reasoning
Think of it as a system that stores knowledge like a graph, learns continuously after deployment, and answers in milliseconds.
Fast, memory‑efficient, and continuously learning – designed for real‑world customer support automation.
🎯 What is this?
A reinforcement learning environment that simulates customer support ticket triage. An agent learns to:
- Identify the main issue from a support ticket.
- Relate it to a known concept in a dynamic knowledge graph.
- Answer with a resolution action.
Unlike static environments or large language models (LLMs), our system maintains persistent memory of concepts and relationships and improves after deployment through continuous background updates – without retraining.
🧠 Key Innovations (Why it’s different)
⚙️ How It Works (simple version)
- Input – a support ticket (e.g., “I can’t log in”)
- Feature extraction – keywords become features (e.g., “login”, “password”)
- DNA encoding – each feature maps to a sequence of letters (A–Z) with learnable vectors; a concept vector is the sum of its features’ encodings. DNA‑inspired encoding means each concept is built from structured combinations of simple components (letters A–Z), enabling compact and composable representations.
- Knowledge graph – concepts are nodes; relationships are edges. When two concepts are linked, their vectors move closer – the whole graph learns.
- Reasoning – FAISS search (similarity) + multi‑hop activation + analogical arithmetic.
- Reward – deterministic scoring based on exact match, substring, or word overlap (0.0 / 0.3 / 0.7 / 1.0).
📊 OpenEnv Tasks (3 independent graders)
All graders are deterministic and return a score between 0.0 and 1.0.
⚡ Performance (on 2 vCPU / 8GB)
🔄 Comparison with LLMs (balanced view)
We do not claim to replace LLMs – we provide a complementary solution for tasks that require low latency, persistent memory, and incremental learning.
🚀 Real‑World Use Cases
- Customer support ticket routing – learn new issues continuously.
- Enterprise knowledge management – keep a living graph of documents.
- Educational tutoring systems – track student misconceptions.
- Legal case law analysis – link new precedents to old rulings.
🛠️ How to Run
Locally
git clone https://github.com/outstandingom/dna-modal.git
cd dna-modal
pip install -r requirements.txt
python inference.py
