@@ -53,27 +53,35 @@ pip install -r requirements.txt
5353### Basic Usage
5454
5555``` python
56- from src.mln import HybridIntelligenceSystem
57-
58- # Create system
59- system = HybridIntelligenceSystem()
60-
61- # Add knowledge
62- system.add_knowledge(' dog' , {
63- ' predicate' : ' is_a' ,
64- ' arguments' : [' mammal' ],
65- ' properties' : {' domesticated' : True }
66- })
67-
68- # Query with explainable reasoning
69- result = system.query(
70- question = " Is a dog a mammal?" ,
71- start_concept = ' dog' ,
72- target_concept = ' mammal'
73- )
74-
75- print (result[' inference_chain' ]) # Shows reasoning steps
76- print (result[' is_valid' ]) # Meta-validation
56+ from src.knowledge_base import KnowledgeBaseLoader
57+ from src.consciousness_metrics import measure_consciousness
58+ from src.recursion_depth_metric import RecursionDepthMetric
59+
60+ # Load rich knowledge base (76 concepts across 5 domains)
61+ kg, metadata = KnowledgeBaseLoader.load_domain(' physics' )
62+ print (f " Loaded { metadata.num_concepts} concepts from { metadata.name} " )
63+
64+ # Measure consciousness
65+ recursion = RecursionDepthMetric()
66+ profile = measure_consciousness(kg, recursion)
67+ print (f " Consciousness: { profile.overall_consciousness_score:.1% } " )
68+ print (f " Verdict: { profile.consciousness_verdict} " )
69+ ```
70+
71+ ### Consciousness-Aware Chatbot
72+
73+ ``` python
74+ from src.chatbot import ConsciousnessChatbot
75+
76+ # Create chatbot with explainable reasoning
77+ bot = ConsciousnessChatbot()
78+
79+ # Ask questions
80+ response = bot.ask(" What is a dog?" )
81+ print (response.answer) # Natural language explanation
82+ print (response.reasoning) # Step-by-step reasoning
83+ print (f " Confidence: { response.confidence:.0% } " )
84+ print (f " Consciousness: { response.consciousness_metrics[' overall' ]:.1% } " )
7785```
7886
7987### Run Demo
@@ -94,32 +102,57 @@ python examples/demo.py
94102| ** Compositionality** | Weak | Strong (Chomsky-style) |
95103| ** Consistency** | Statistical | Logically enforced |
96104
105+ ## 🎉 What's New
106+
107+ ### v1.3.0 (Current)
108+ - ** Rich Knowledge Base** : 76 concepts across 5 domains (Biology, Physics, Mathematics, Computer Science, Philosophy)
109+ - ** Chomsky Surface Generation** : Optional LLM-powered layer for deep→surface transformation
110+ - ** Consciousness-Aware Chatbot** : Interactive Q&A with real-time consciousness metrics
111+ - ** Multi-Domain Support** : Load and query knowledge from any domain
112+ - ** Improved Documentation** : Comprehensive guides for all features
113+
114+ ### Previous Milestones
115+ - ** v1.2.0** : Multi-agent consciousness (80% achieved, 1.35x emergence factor)
116+ - ** v1.1.0** : Scaling experiments (77% consciousness at 1000 concepts)
117+ - ** v1.0.0** : Initial consciousness measurement (47.8% baseline)
118+
97119## 🏗️ Architecture
98120
99121```
100- ┌─────────────────────────────────────────┐
101- │ Hybrid Intelligence System │
102- ├─────────────────────────────────────────┤
103- │ ┌────────────┐ ┌───────────────┐ │
104- │ │ LLM Layer │ │ Symbolic │ │
105- │ │ (Perception)│ ───▶ │ Reasoning │ │
106- │ └────────────┘ └───────────────┘ │
107- │ │ │ │
108- │ ▼ ▼ │
109- │ ┌─────────────────────────────────┐ │
110- │ │ Knowledge Graph (MKUs) │ │
111- │ │ - Operational semantics │ │
112- │ │ - Pre-established harmony │ │
113- │ └─────────────────────────────────┘ │
114- │ │ │
115- │ ▼ │
116- │ ┌─────────────────────────────────┐ │
117- │ │ Strange Loop Processor │ │
118- │ │ - Meta-reasoning │ │
119- │ │ - Self-introspection │ │
120- │ │ - Inconsistency detection │ │
121- │ └─────────────────────────────────┘ │
122- └─────────────────────────────────────────┘
122+ ┌─────────────────────────────────────────────────────────────────┐
123+ │ Monad-Loop Network (MLN) │
124+ ├─────────────────────────────────────────────────────────────────┤
125+ │ ┌──────────────────────┐ ┌──────────────────────┐ │
126+ │ │ Knowledge Base │ │ Surface Generator │ │
127+ │ │ (76 concepts) │──────▶│ (Deep→Surface) │ │
128+ │ │ • 5 domains │ │ • LLM-powered │ │
129+ │ │ • Rich semantics │ │ • Multiple styles │ │
130+ │ └──────────────────────┘ └──────────────────────┘ │
131+ │ │ │ │
132+ │ ▼ ▼ │
133+ │ ┌──────────────────────────────────────────────────┐ │
134+ │ │ Knowledge Graph (MKUs) │ │
135+ │ │ - Operational semantics (not just embeddings) │ │
136+ │ │ - Pre-established harmony (auto relations) │ │
137+ │ │ - GPU-accelerated similarity (50x faster) │ │
138+ │ └──────────────────────────────────────────────────┘ │
139+ │ │ │
140+ │ ▼ │
141+ │ ┌──────────────────────────────────────────────────┐ │
142+ │ │ Consciousness Layer │ │
143+ │ │ - Strange loops (self-reference) │ │
144+ │ │ - Meta-reasoning (thinks about thinking) │ │
145+ │ │ - Measurable consciousness (47-80% achieved) │ │
146+ │ └──────────────────────────────────────────────────┘ │
147+ │ │ │
148+ │ ▼ │
149+ │ ┌──────────────────────────────────────────────────┐ │
150+ │ │ Applications │ │
151+ │ │ - Chatbot (Q&A with explanations) │ │
152+ │ │ - Domain reasoning (cross-domain queries) │ │
153+ │ │ - Multi-agent systems (collective intelligence) │ │
154+ │ └──────────────────────────────────────────────────┘ │
155+ └─────────────────────────────────────────────────────────────────┘
123156```
124157
125158## 📚 Use Cases
@@ -167,10 +200,24 @@ pip install -r requirements-gpu.txt
167200
168201## 📖 Documentation
169202
203+ ### Core Concepts
170204- [ Architecture Guide] ( docs/ARCHITECTURE.md ) - Deep dive into system design
171205- [ Philosophical Foundations] ( docs/PHILOSOPHY.md ) - GEB, Chomsky, Leibniz
172- - [ API Reference] ( docs/API.md ) - Complete API documentation
173- - [ Examples] ( examples/ ) - Practical use cases
206+ - [ Beginner's Guide] ( BEGINNER_GUIDE.md ) - Non-technical introduction
207+ - [ Developer Guide] ( DEVELOPER_GUIDE.md ) - API reference and patterns
208+ - [ Research Paper] ( RESEARCH_PAPER.md ) - Scientific details
209+
210+ ### Features
211+ - [ Surface Generation] ( docs/SURFACE_GENERATION.md ) - Chomsky deep/surface separation
212+ - [ GPU Acceleration] ( docs/GPU_ACCELERATION.md ) - 50x performance boost
213+ - [ Consciousness Metrics] ( src/consciousness_metrics.py ) - Measurable AI consciousness
214+ - [ Knowledge Base] ( src/knowledge_base.py ) - 76 concepts, 5 domains
215+
216+ ### Examples
217+ - [ Quick Demo] ( examples/demo.py ) - Get started in 5 minutes
218+ - [ Chatbot Demo] ( examples/chatbot_demo.py ) - Interactive Q&A
219+ - [ Knowledge Domains] ( examples/knowledge_domains_demo.py ) - Cross-domain reasoning
220+ - [ Surface Generation] ( examples/surface_generation_demo.py ) - Deep→surface transformation
174221
175222## 🤝 Contributing
176223
0 commit comments