b08x commited on
Commit
8996b36
·
verified ·
1 Parent(s): 933b727

Upload pages/knowledge.js with huggingface_hub

Browse files
Files changed (1) hide show
  1. pages/knowledge.js +103 -0
pages/knowledge.js ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import Layout from '../components/Layout';
2
+ import KnowledgeArticle from '../components/KnowledgeArticle';
3
+
4
+ const articles = [
5
+ {
6
+ id: 1,
7
+ title: 'Introduction to Large Language Models',
8
+ category: 'AI/ML',
9
+ excerpt: 'A comprehensive guide to understanding LLMs, their architecture, transformers, attention mechanisms, and practical applications in modern software development.',
10
+ readTime: '15 min',
11
+ date: 'Dec 10, 2024',
12
+ tags: ['LLM', 'AI', 'NLP', 'Transformers'],
13
+ featured: true,
14
+ },
15
+ {
16
+ id: 2,
17
+ title: 'Building RAG Applications from Scratch',
18
+ category: 'Engineering',
19
+ excerpt: 'Learn how to build production-ready Retrieval Augmented Generation systems with modern tools like LangChain, Vector DBs, and embeddings.',
20
+ readTime: '20 min',
21
+ date: 'Dec 8, 2024',
22
+ tags: ['RAG', 'Vector DB', 'LangChain'],
23
+ },
24
+ {
25
+ id: 3,
26
+ title: 'Fine-tuning LLaMA 3 for Custom Tasks',
27
+ category: 'AI/ML',
28
+ excerpt: 'A deep dive into fine-tuning Meta LLaMA 3 on custom datasets using QLoRA and PEFT techniques for efficient model adaptation.',
29
+ readTime: '25 min',
30
+ date: 'Dec 5, 2024',
31
+ tags: ['LLaMA', 'Fine-tuning', 'PEFT'],
32
+ featured: false,
33
+ },
34
+ {
35
+ id: 4,
36
+ title: 'Vector Databases: A Practical Comparison',
37
+ category: 'Database',
38
+ excerpt: 'Compare Pinecone, Weaviate, Milvus, Chroma and other vector databases for your AI applications with performance benchmarks.',
39
+ readTime: '18 min',
40
+ date: 'Dec 3, 2024',
41
+ tags: ['Vector DB', 'Pinecone', 'Weaviate'],
42
+ },
43
+ {
44
+ id: 5,
45
+ title: 'Building AI Agents with AutoGen',
46
+ category: 'Agents',
47
+ excerpt: 'Create autonomous AI agents using Microsoft AutoGen framework for complex multi-agent workflows and task automation.',
48
+ readTime: '22 min',
49
+ date: 'Nov 28, 2024',
50
+ tags: ['Agents', 'AutoGen', 'Automation'],
51
+ },
52
+ {
53
+ id: 6,
54
+ title: 'Prompt Engineering Best Practices',
55
+ category: 'Prompt Engineering',
56
+ excerpt: 'Master the art of crafting effective prompts for LLMs including chain-of-thought, few-shot learning, and role-playing techniques.',
57
+ readTime: '12 min',
58
+ date: 'Nov 25, 2024',
59
+ tags: ['Prompts', 'Best Practices', 'LLM'],
60
+ },
61
+ ];
62
+
63
+ const categories = ['All', 'AI/ML', 'Engineering', 'Database', 'Agents', 'Prompt Engineering'];
64
+
65
+ export default function Knowledge() {
66
+ return (
67
+ <Layout title="Knowledge Base" subtitle="Articles & Tutorials">
68
+ {/* Categories */}
69
+ <div className="mb-8 flex flex-wrap gap-2">
70
+ {categories.map((category) => (
71
+ <button
72
+ key={category}
73
+ className={`
74
+ font-mono text-sm px-4 py-2 border-2 transition-all
75
+ ${category === 'All'
76
+ ? 'bg-brutal-black text-brutal-white border-brutal-black'
77
+ : 'border-brutal-black hover:bg-brutal-black hover:text-brutal-white'
78
+ }
79
+ `}
80
+ >
81
+ {category}
82
+ </button>
83
+ ))}
84
+ </div>
85
+
86
+ {/* Articles Grid */}
87
+ <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
88
+ {articles.map((article) => (
89
+ <KnowledgeArticle key={article.id} article={article} />
90
+ ))}
91
+ </div>
92
+
93
+ {/* Pagination */}
94
+ <div className="mt-12 flex justify-center gap-2">
95
+ <button className="brutal-btn">Previous</button>
96
+ <button className="brutal-btn bg-brutal-black text-brutal-white">1</button>
97
+ <button className="brutal-btn">2</button>
98
+ <button className="brutal-btn">3</button>
99
+ <button className="brutal-btn">Next</button>
100
+ </div>
101
+ </Layout>
102
+ );
103
+ }