Skip to content

DQ0: the doc-search epic doc set - #1

Merged
pullely merged 1 commit into
mainfrom
orun/DQ-1-the-spec
Oct 28, 2026
Merged

pullely merged 1 commit into
mainfrom
orun/DQ-1-the-spec

Conversation

@pullely

@pullely pullely commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

The doc-search epic: epic.yaml (key DQ, three milestones: the spec, the doc search on Workers and Supabase, a baseline), the README, the design (the template at 50d6bb7, how each piece maps to Cloudflare and Supabase — the edge route as an App Router route handler beside the Pages Router page, AI SDK 5's plain-text stream, the per-call client through Hyperdrive with no service-role key, upstream's migration kept and resized to Workers AI's 768 dimensions with a cosine match, the functions closed to the Data API — where the docs are embedded and why there: the build splits them into a committed index with no credential, and the deployed Worker, which holds the AI and HYPERDRIVE bindings, embeds the changed pages when the deploy's smoke POSTs /api/embeddings, one transaction per page under an advisory lock; the models, Workers AI for every embedding and the answer with OpenAI optional for the answer only; and the alternatives rejected: embedding at next build in CI, a separate indexing job, embedding on the first search, OpenAI embeddings behind the key, upstream's seed, the Data API, moving the page to the App Router), the implementation plan, the risks, the as-built status, and the three task contracts.

🤖 Generated with Claude Code

The doc-search epic: epic.yaml (key DQ, three milestones: the spec, the doc search on Workers and Supabase, a baseline), the README, the design (the template at 50d6bb7, how each piece maps to Cloudflare and Supabase — the edge route as an App Router route handler beside the Pages Router page, AI SDK 5's plain-text stream, the per-call client through Hyperdrive with no service-role key, upstream's migration kept and resized to Workers AI's 768 dimensions with a cosine match, the functions closed to the Data API — where the docs are embedded and why there: the build splits them into a committed index with no credential, and the deployed Worker, which holds the AI and HYPERDRIVE bindings, embeds the changed pages when the deploy's smoke POSTs /api/embeddings, one transaction per page under an advisory lock; the models, Workers AI for every embedding and the answer with OpenAI optional for the answer only; and the alternatives rejected: embedding at next build in CI, a separate indexing job, embedding on the first search, OpenAI embeddings behind the key, upstream's seed, the Data API, moving the page to the App Router), the implementation plan, the risks, the as-built status, and the three task contracts.

Co-Authored-By: Claude <noreply@anthropic.com>
Orun-Task: DQ-1
@pullely
pullely merged commit e7f0f7b into main Oct 28, 2026
2 checks passed
@pullely
pullely deleted the orun/DQ-1-the-spec branch October 28, 2026 18:35
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.

2 participants