Skip to content

Conversation

@jumski
Copy link
Contributor

@jumski jumski commented Nov 18, 2025

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.

@changeset-bot
Copy link

changeset-bot bot commented Nov 18, 2025

⚠️ No Changeset found

Latest commit: 62aac2a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor Author

jumski commented Nov 18, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge:queue - adds this PR to the back of the merge queue
  • hotfix:queue - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@nx-cloud
Copy link

nx-cloud bot commented Nov 18, 2025

View your CI Pipeline Execution ↗ for commit 62aac2a

Command Status Duration Result
nx affected -t verify-exports --base=origin/mai... ✅ Succeeded 3s View ↗
nx affected -t build --configuration=production... ✅ Succeeded 30s View ↗
nx affected -t lint typecheck test --parallel -... ✅ Succeeded 5m 6s View ↗
nx affected -t test:e2e --parallel --base=origi... ✅ Succeeded 4m 22s View ↗

☁️ Nx Cloud last updated this comment at 2025-11-26 13:16:21 UTC

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -0,0 +1 @@
/home/jumski/Code/pgflow-dev/claude/source/CLAUDE.md No newline at end of file

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Replace broken absolute CLAUDE symlink

CLAUDE.md is committed as a symlink to /home/jumski/Code/pgflow-dev/claude/source/CLAUDE.md, which only exists on the author’s machine. In any other checkout the target is missing, leaving the doc unreadable and leaking a local path, so any process expecting this file will fail; the link should be made relative or the actual content checked in.

Useful? React with 👍 / 👎.

Comment on lines +33 to +34
-- Create index for faster similarity search
create index on documents using ivfflat (embedding vector_cosine_ops);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add ivfflat list count to documents index

The RAG pipeline schema creates an IVFFLAT index without specifying the required WITH (lists = ...) option (create index on documents using ivfflat (embedding vector_cosine_ops);). pgvector rejects this statement with “missing required parameter lists”, so running the migration as written will fail and the tutorial cannot be followed until a list count is provided.

Useful? React with 👍 / 👎.

Comment on lines +44 to +46
);

create index on knowledge_base using ivfflat (embedding vector_cosine_ops);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Specify lists for knowledge base IVFFLAT index

The chatbot schema also creates an IVFFLAT index without the mandatory WITH (lists = ...) parameter (create index on knowledge_base using ivfflat ...). PostgreSQL/pgvector will error with “missing required parameter lists”, preventing users from applying the migration or running the tutorial; the index needs an explicit list count.

Useful? React with 👍 / 👎.

@jumski jumski force-pushed the claude/add-use-cases-tutorials-011CUrzyLUcAZQ8EY4BCi1eC branch from 843cc1b to 9750eff Compare November 19, 2025 10:20
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.
@jumski jumski force-pushed the claude/add-use-cases-tutorials-011CUrzyLUcAZQ8EY4BCi1eC branch from 9750eff to 62aac2a Compare November 26, 2025 13:06
@github-actions
Copy link
Contributor

🔍 Preview Deployment: Website

Deployment successful!

🔗 Preview URL: https://pr-392.pgflow.pages.dev

📝 Details:

  • Branch: claude/add-use-cases-tutorials-011CUrzyLUcAZQ8EY4BCi1eC
  • Commit: b69a5109dbb900f4caa6de520598852fbd4d8fb9
  • View Logs

_Last updated: _

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants