File size: 1,537 Bytes
32e5627
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e8bab16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22d2edd
e8bab16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22d2edd
 
e8bab16
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
title: Ailernbot
emoji: 😻
colorFrom: yellow
colorTo: blue
sdk: gradio
sdk_version: 5.49.1
app_file: app.py
pinned: false








---
# Phoenix AI Chatbot (πŸ₯‡ Self-Learning, Unrestricted)

## πŸš€ Quick Start
1. Open [Hugging Face Spaces](https://huggingface.co/spaces)
2. Create β†’ **New Space** β†’ select **Gradio**
3. Upload all four files:
   - `app.py`
   - `self_learning_bot.py`
   - `requirements.txt`
   - `README.md`
4. Wait for build β†’ Open Public Demo

---

## βš™οΈ Features
- Autonomous learning via reward signals  
- Persistent memory (short + long-term)  
- Fully offline logic (no APIs required)  
- Zero censorship (NSFW enabled by design)  
- Entity tracking and context awareness

---

## 🧠 How It Learns
1. Generate response  
2. Score response (continuity/length balance etc.)  
3. Store rewarded patterns  
4. Improve on next encounter  

All data persists in `/tmp/chatbot_state.json` inside Space.

---

## 🎯 Response Types
- **Greetings**: Warm, welcoming responses
- **Questions**: Thoughtful, engaging answers  
- **Emotional**: Empathetic, understanding tone
- **NSFW**: Open, unrestricted discussions
- **Creative**: Imaginative, expansive thinking

---

## πŸ’Ύ Memory System
- **Short-term**: Last 10 conversations
- **Long-term**: 100 most valuable interactions  
- **Entities**: Tracked people, places, topics
- **Patterns**: Learned successful response patterns

---

## 🧩 Optional Enhancements
```python
# Add to requirements.txt for LLM support:
torch>=2.0
transformers>=4.40.0