Skip to content

Commit 9d902b1

Browse files
authored
Merge pull request #40 from james-see/fix/add-llm-examples-to-catalog
Add LLM examples to landing page catalog
2 parents c6dd4d1 + 9c21bb3 commit 9d902b1

File tree

1 file changed

+33
-4
lines changed

1 file changed

+33
-4
lines changed

docs/src/pages/index.astro

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,35 @@
22
import Layout from '../layouts/Layout.astro';
33
44
const examples = [
5+
// LLM & AI
6+
{
7+
title: 'openai_gpt-example.py',
8+
description: 'Chat completions, streaming, function calling, JSON mode with GPT-4',
9+
category: 'LLM & AI',
10+
tags: ['openai', 'gpt', 'llm', 'chat', 'streaming', 'ai'],
11+
difficulty: 'intermediate'
12+
},
13+
{
14+
title: 'anthropic_claude-example.py',
15+
description: 'Claude 3.5 integration with vision, streaming, and extended thinking',
16+
category: 'LLM & AI',
17+
tags: ['anthropic', 'claude', 'llm', 'vision', 'ai'],
18+
difficulty: 'intermediate'
19+
},
20+
{
21+
title: 'langchain-example.py',
22+
description: 'LangChain framework: chains, memory, RAG, and prompt templates',
23+
category: 'LLM & AI',
24+
tags: ['langchain', 'llm', 'rag', 'agents', 'chains', 'ai'],
25+
difficulty: 'advanced'
26+
},
27+
{
28+
title: 'instructor-example.py',
29+
description: 'Type-safe structured outputs from LLMs using Pydantic',
30+
category: 'LLM & AI',
31+
tags: ['instructor', 'llm', 'pydantic', 'structured', 'validation', 'ai'],
32+
difficulty: 'intermediate'
33+
},
534
// Network & APIs
635
{
736
title: 'grpcio-example.py',
@@ -113,10 +142,10 @@ const totalExamples = examples.length;
113142
<div class="abstract">
114143
<div class="abstract-title">Abstract</div>
115144
<p>
116-
A curated collection of practical Python code examples covering web APIs, data processing,
117-
security tools, web scraping, and file manipulation. Each example is production-ready with
118-
proper error handling, security considerations, and clear documentation. Built by a developer
119-
who automates everything and believes good examples are better than lengthy tutorials.
145+
A curated collection of practical Python code examples covering modern LLM integrations,
146+
web APIs, data processing, security tools, web scraping, and file manipulation. Each example
147+
is production-ready with proper error handling, security considerations, and clear documentation.
148+
Built by a developer who automates everything and believes good examples are better than lengthy tutorials.
120149
</p>
121150
</div>
122151

0 commit comments

Comments
 (0)