-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample-data.sql
More file actions
192 lines (187 loc) · 5.54 KB
/
sample-data.sql
File metadata and controls
192 lines (187 loc) · 5.54 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
-- Sample Data for Portfolio
-- Run this in Prisma Studio or via SQL to populate your portfolio with example data
-- Insert sample projects
INSERT INTO projects (
id, title, slug, description, tech_stack, github_url, demo_url,
thumbnail_url, published, display_order, created_at, updated_at
) VALUES
(
gen_random_uuid(),
'AI-Powered Code Assistant',
'ai-code-assistant',
'An intelligent code completion and refactoring tool built with GPT-4 and TypeScript. Features real-time suggestions, automatic documentation, and smart refactoring capabilities.',
ARRAY['Python', 'TypeScript', 'OpenAI API', 'React', 'FastAPI'],
'https://github.com/yourusername/ai-code-assistant',
'https://demo.example.com',
NULL,
true,
1,
NOW(),
NOW()
),
(
gen_random_uuid(),
'Distributed Machine Learning Platform',
'ml-platform',
'Scalable ML training platform supporting distributed computing, automatic hyperparameter tuning, and model versioning. Built for production workloads.',
ARRAY['Python', 'TensorFlow', 'Kubernetes', 'Docker', 'Redis'],
'https://github.com/yourusername/ml-platform',
NULL,
NULL,
true,
2,
NOW(),
NOW()
),
(
gen_random_uuid(),
'Real-Time Data Pipeline',
'data-pipeline',
'High-throughput data processing pipeline handling millions of events per second. Features real-time analytics and automated data quality checks.',
ARRAY['Apache Kafka', 'Spark', 'Python', 'PostgreSQL', 'Grafana'],
'https://github.com/yourusername/data-pipeline',
NULL,
NULL,
true,
3,
NOW(),
NOW()
);
-- Insert sample publications
INSERT INTO publications (
id, title, slug, authors, year, venue, doi, arxiv_id, pdf_url,
abstract, tags, published, created_at, updated_at
) VALUES
(
gen_random_uuid(),
'Efficient Attention Mechanisms for Large Language Models',
'efficient-attention-llms',
ARRAY['Your Name', 'Collaborator A', 'Collaborator B'],
2024,
'NeurIPS 2024',
'10.1234/neurips.2024.12345',
'2409.12345',
'https://example.com/paper.pdf',
'We propose a novel attention mechanism that reduces computational complexity from O(n²) to O(n log n) while maintaining model performance. Our approach enables training of larger models with limited computational resources.',
ARRAY['Machine Learning', 'NLP', 'Transformers', 'Efficiency'],
true,
NOW(),
NOW()
),
(
gen_random_uuid(),
'Federated Learning with Differential Privacy',
'federated-learning-privacy',
ARRAY['Your Name', 'Research Partner'],
2023,
'ICML 2023',
'10.1234/icml.2023.67890',
'2306.54321',
'https://example.com/federated-learning.pdf',
'This paper introduces a federated learning framework with formal differential privacy guarantees. We demonstrate that privacy can be maintained without significant loss in model accuracy across diverse datasets.',
ARRAY['Federated Learning', 'Privacy', 'Machine Learning'],
true,
NOW(),
NOW()
),
(
gen_random_uuid(),
'Multi-Modal Learning for Computer Vision',
'multimodal-cv',
ARRAY['Your Name', 'Team Member A', 'Team Member B'],
2023,
'CVPR 2023',
NULL,
'2302.98765',
NULL,
'A comprehensive study on combining visual and textual information for improved image understanding. We achieve state-of-the-art results on multiple benchmark datasets.',
ARRAY['Computer Vision', 'Multi-Modal Learning', 'Deep Learning'],
true,
NOW(),
NOW()
);
-- Insert sample blog posts
INSERT INTO blog_posts (
id, title, slug, excerpt, content_url, cover_image_url,
tags, published, published_at, reading_time, views,
created_at, updated_at
) VALUES
(
gen_random_uuid(),
'Building Production-Ready AI Systems',
'production-ai-systems',
'Learn the key principles and best practices for deploying AI models in production environments. From model serving to monitoring, we cover everything you need to know.',
NULL,
NULL,
ARRAY['AI', 'MLOps', 'Production', 'Best Practices'],
true,
NOW() - INTERVAL '5 days',
8,
245,
NOW() - INTERVAL '5 days',
NOW()
),
(
gen_random_uuid(),
'Understanding Transformer Architecture',
'understanding-transformers',
'A deep dive into the transformer architecture that powers modern language models. We explain attention mechanisms, positional encoding, and training techniques.',
NULL,
NULL,
ARRAY['Machine Learning', 'NLP', 'Transformers', 'Tutorial'],
true,
NOW() - INTERVAL '15 days',
12,
567,
NOW() - INTERVAL '15 days',
NOW()
),
(
gen_random_uuid(),
'Optimizing Database Performance at Scale',
'database-optimization',
'Practical tips for optimizing PostgreSQL performance when handling millions of queries per day. Covers indexing, query optimization, and connection pooling.',
NULL,
NULL,
ARRAY['Database', 'PostgreSQL', 'Performance', 'Optimization'],
true,
NOW() - INTERVAL '30 days',
10,
892,
NOW() - INTERVAL '30 days',
NOW()
),
(
gen_random_uuid(),
'The Future of AI Engineering',
'future-ai-engineering',
'Exploring emerging trends in AI engineering: from multimodal models to edge computing. What skills will AI engineers need in the next 5 years?',
NULL,
NULL,
ARRAY['AI', 'Career', 'Future', 'Trends'],
false,
NULL,
6,
0,
NOW(),
NOW()
);
-- Insert admin user (optional)
INSERT INTO users (
id, email, name, avatar_url, role, created_at, updated_at
) VALUES
(
gen_random_uuid(),
'admin@example.com',
'Portfolio Admin',
NULL,
'admin',
NOW(),
NOW()
)
ON CONFLICT (email) DO NOTHING;
-- Verify data
SELECT 'Projects:', COUNT(*) FROM projects;
SELECT 'Publications:', COUNT(*) FROM publications;
SELECT 'Blog Posts:', COUNT(*) FROM blog_posts;
SELECT 'Users:', COUNT(*) FROM users;