You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Select the new tuned model and compare it against a set of prompting techniques (zero-shot, few-shot and chain-of-thought):
41
57
42
58
```bash
43
59
uv run start-compare
44
60
```
45
61
46
-
### Build using Docker (Recommended)
62
+
6.**Start Social Bots (optional):**:
63
+
64
+
- Set up Twitter/X API credentials
65
+
- Configure Telegram bot token
66
+
- Enable/disable platforms as needed
47
67
48
-
**Note:** You can only perform this step once you have finishing training a new model.
68
+
```bash
69
+
uv run start-bots
70
+
```
71
+
72
+
### Interact with model
49
73
50
74
The Docker setup mimics a TEE environment and includes an Nginx server for routing, while Supervisor manages both the backend and frontend services in a single container.
51
75
52
-
1.**Build the Docker Image:**
76
+
1.**Build the Docker image**:
53
77
54
78
```bash
55
79
docker build -t flare-ai-social .
@@ -62,7 +86,32 @@ The Docker setup mimics a TEE environment and includes an Nginx server for routi
62
86
```
63
87
64
88
3.**Access the Frontend:**
65
-
Open your browser and navigate to [http://localhost:80](http://localhost:80) to interact with the Chat UI.
89
+
Open your browser and navigate to [http://localhost:80](http://localhost:80) to interact with the tuned model via the Chat UI.
90
+
91
+
## 📁 Repo Structure
92
+
93
+
```plaintext
94
+
src/flare_ai_social/
95
+
├── ai/ # AI Provider implementations
96
+
│ ├── base.py # Base AI provider abstraction
97
+
│ ├── gemini.py # Google Gemini integration
98
+
│ └── openrouter.py # OpenRouter integration
99
+
├── api/ # API layer
100
+
│ └── routes/ # API endpoint definitions
101
+
├── attestation/ # TEE attestation implementation
102
+
│ ├── vtpm_attestation.py # vTPM client
103
+
│ └── vtpm_validation.py # Token validation
104
+
├── prompts/ # Prompt engineering templates
105
+
│ └── templates.py # Different prompt strategies
106
+
├── telegram/ # Telegram bot implementation
107
+
│ └── service.py # Telegram service logic
108
+
├── twitter/ # Twitter bot implementation
109
+
│ └── service.py # Twitter service logic
110
+
├── bot_manager.py # Bot orchestration
111
+
├── main.py # FastAPI application
112
+
├── settings.py # Configuration settings
113
+
└── tune_model.py # Model fine-tuning utilities
114
+
```
66
115
67
116
## 🚀 Deploy on TEE
68
117
@@ -171,3 +220,7 @@ If you encounter issues, follow these steps:
171
220
172
221
3.**Check Firewall Settings:**
173
222
Confirm that your instance is publicly accessible on port `80`.
0 commit comments