Skip to content

Commit 45e1651

Browse files
claudejumski
authored andcommitted
docs: add use cases tutorials for AI workflows
Add new tutorial section covering common AI patterns: - Automatic embeddings with database triggers - Structured output using Zod schemas - RAG pipeline with query transformation and reranking - Chatbot with parallel history and knowledge retrieval All tutorials demonstrate proper pgflow DSL patterns with factual, working examples using AI SDK and standard libraries.
1 parent 03a3b6a commit 45e1651

9 files changed

Lines changed: 1982 additions & 520 deletions

File tree

pkgs/website/astro.config.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,12 +434,24 @@ export default defineConfig({
434434
link: '/tutorials/',
435435
id: 'tutorials',
436436
items: [
437+
{
438+
label: 'RAG Pipeline',
439+
autogenerate: {
440+
directory: 'tutorials/rag/',
441+
},
442+
},
437443
{
438444
label: 'AI Web Scraper',
439445
autogenerate: {
440446
directory: 'tutorials/ai-web-scraper/',
441447
},
442448
},
449+
{
450+
label: 'Use Cases',
451+
autogenerate: {
452+
directory: 'tutorials/use-cases/',
453+
},
454+
},
443455
],
444456
},
445457
{

pkgs/website/src/content/docs/tutorials/index.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ Learn pgflow through hands-on examples. These tutorials guide you through buildi
1616
description="Create a workflow that scrapes webpages, analyzes content with OpenAI, and stores results in Postgres"
1717
href="/tutorials/ai-web-scraper/"
1818
/>
19+
<LinkCard
20+
title="Use Cases"
21+
description="Practical examples for common AI workflows: embeddings, structured output, RAG, and chatbots"
22+
href="/tutorials/use-cases/"
23+
/>
1924
</CardGrid>

0 commit comments

Comments
 (0)