Skip to content

Reapply PR #559: AI Gateway documentation rewrite for ADP GA#2

Merged
micheleRP merged 2 commits intomainfrom
reapply-pr559-ai-gateway-rewrite
Apr 29, 2026
Merged

Reapply PR #559: AI Gateway documentation rewrite for ADP GA#2
micheleRP merged 2 commits intomainfrom
reapply-pr559-ai-gateway-rewrite

Conversation

@JakeSCahill
Copy link
Copy Markdown
Contributor

@JakeSCahill JakeSCahill commented Apr 27, 2026

Summary

This reapplies changes from cloud-docs PR #559 by @micheleRP to the adp-docs repository.

Changes from Original PR

AI Gateway restructure for ADP GA release:

  • Updated overview.adoc with consolidated conceptual content
  • Updated configure-provider.adoc as primary how-to guide grounded in llm_provider.proto
  • Updated connect-agent.adoc with OIDC authentication patterns
  • Updated index.adoc as landing page emphasizing Redpanda as managed LLM API proxy

The documentation now follows simplified navigation and includes page aliases for legacy URLs.

Original PR Details

Preview pages

Testing

  • Build completes successfully
  • All pages render correctly
  • Navigation works as expected
  • Page aliases redirect properly

🤖 Generated with Claude Code

This reapplies changes from cloud-docs PR #559 by @micheleRP:
redpanda-data/cloud-docs#559

## Changes from original PR

**AI Gateway restructure for ADP GA release:**
- Updated overview.adoc with consolidated conceptual content
- Updated configure-provider.adoc as primary how-to guide grounded in llm_provider.proto
- Updated connect-agent.adoc with OIDC authentication patterns
- Updated index.adoc as landing page emphasizing Redpanda as managed LLM API proxy

The documentation now follows simplified navigation and includes page aliases for legacy URLs.

Co-Authored-By: Michele Cyran <micheleRP@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@JakeSCahill JakeSCahill requested a review from a team as a code owner April 27, 2026 11:18
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 27, 2026

Deploy Preview for redpanda-agentic-data-plane ready!

Name Link
🔨 Latest commit 110c202
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-agentic-data-plane/deploys/69f1590fcfbeb600092e8abd
😎 Deploy Preview https://deploy-preview-2--redpanda-agentic-data-plane.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Updates the four AI Gateway pages to match the cluster-embedded view
on adp-production as of 2026-04-28:

- Lead `connect-agent.adoc` with the rpai CLI flow (matches what the
  provider detail page surfaces in `Install rpai CLI` + `rpai auth login`).
  Demote manual OIDC client_credentials to a "CI and programmatic"
  alternative, with TODO markers on standalone-ADP-specific values.
- Replace the "Overview tab / API Examples tab" framing with the actual
  single-page layout: Connection card → Models → Cost & usage (Coming
  soon) → Getting started → Connect your app → Delete this provider.
- Drop the unsettable Description identity field (proto exposes it on
  the stored type but not on Create/Update; UI form has no field for it).
- Update Models story for Phase 1 ProviderModel + capability badges +
  catalog-backed picker (lifted from adp-ui/src/routes/llm-providers/
  create.tsx and the model card component).
- Update Anthropic example IDs to claude-sonnet-4-6 (was claude-sonnet-4-5;
  live cluster ships claude-sonnet-4-6 / claude-opus-4-7 / claude-haiku-4-5).
- Rename Google "(Gemini)" → "Google AI" to match the picker label;
  expand OpenAI-compatible examples to include Together / Groq / OpenRouter
  per the picker description.
- Replace manual-curl verification step with the Test Connection
  control + Show commands disclosure on the Verify connection panel.
- Add VPC/dataplane traffic-stays-in-your-network framing to overview.adoc
  (lifted from the live UI's Getting started panel).
- Add "Cost & usage (Coming soon)" reference and cross-link to the
  Budgets workflow's read-only spending visibility for the GA story.
- Use UI labels verbatim throughout: API key (not API key reference),
  Auth passthrough (not Authorization passthrough).
- Cluster-embedded sign-in flow as primary ("open your cluster, expand
  ADP, select LLM Providers"), with TODO markers for the standalone-ADP
  rewrite once that surface ships.
- Cleanup: every `include::ai-agents:partial$adp-la.adoc[]` →
  `include::ROOT:partial$adp-la.adoc[]`. Every `xref:ai-agents:ai-gateway/*`
  → intra-component `xref:*` form. Page-aliases prefixed with
  `redpanda-cloud:ai-agents:` so cross-component redirects from old
  cloud-docs URLs work.

Out of scope (separate cleanup PR):
- Deleting the legacy AI Gateway pages (gateway-quickstart, gateway-
  architecture, aggregation, routing-cel, admin/setup-guide,
  builders/discover-gateways) and retargeting the ~80 cross-module
  xrefs from agents/integrations/observability partials. Tracked
  inline in configure-provider.adoc:5.
- Drift in the standalone-ADP wording (sign-in URL, IAM model, OIDC
  audience). Marked with TODOs throughout, to resolve when standalone
  ADP launches.

Refs: cloud-docs#559 (original rewrite), DOC-2109. Verified against
proto/public/cloud/redpanda/api/adp/v1alpha1/llm_provider.proto and
apps/adp-ui/src/routes/llm-providers/ on cloudv2 main, plus screenshots
from the adp-production cluster.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@micheleRP
Copy link
Copy Markdown
Contributor

Pushed 110c202 — aligns the four pages with the current cloudv2 proto + live adp-production UI as of 2026-04-28.

What changed and why

connect-agent.adoc: rewritten to lead with the rpai CLI flow. The provider detail page on the live cluster surfaces an Install rpai CLI card with brew install redpanda-data/tap/rpai + rpai auth login --server <gateway>, and the curl/SDK snippets in the UI all use export OPENAI_API_KEY=\"$(rpai auth token)\". The previous draft taught manual OIDC client_credentials as the primary path, which doesn't match what users see. Manual OIDC is kept as a "CI and programmatic" alternative.

configure-provider.adoc: the original draft described an "Overview tab" and "API Examples tab" on the provider detail page, but the actual UI is a single-page layout with section headings (Connection, Models, Cost & usage, Getting started, Connect your app, Delete). Updated to match. Also:

  • Removed the Description identity field (proto has it on the stored type but LLMProviderCreate/LLMProviderUpdate don't expose it; the UI form has no field).
  • Updated the Models story for AI-911 Phase 1provider_models (structured) replaces the deprecated flat models list. Added mention of capability badges (Vision, Reasoning, Streaming) the UI renders on each model card.
  • Replaced the manual-curl verification step with the Test Connection control + Show commands disclosure on the Verify connection panel.

overview.adoc: added a "Traffic stays in your VPC" subsection (lifted from the live UI's Getting started panel — strong security messaging worth pulling forward); added a Cost & usage "Coming soon" mention and cross-link to the Budgets workflow.

Both pages: updated provider type framing to match the picker:

  • Google (Gemini)Google AI
  • OpenAI-compatible expanded to include Together, Groq, OpenRouter per the picker description
  • Anthropic example IDs updated to claude-sonnet-4-6 (live cluster shows claude-sonnet-4-6 / claude-opus-4-7 / claude-haiku-4-5)

UI labels lifted verbatim from the live form: API key (not "API key reference"), Auth passthrough (not "Authorization passthrough").

Sign-in framing: leaned concrete on the cluster-embedded view that's live today (open your cluster → expand ADPLLM Providers). Added TODO markers for the standalone-ADP rewrite when that surface ships.

Cleanup: every include::ai-agents:partial$adp-la.adoc[]include::ROOT:partial$adp-la.adoc[]. Every xref:ai-agents:ai-gateway/* → intra-component xref. Page-aliases now prefixed with redpanda-cloud:ai-agents: so legacy cloud-docs URLs redirect.

Out of scope (separate cleanup PR)

The original cloud-docs#559 rewrite implies deleting six legacy AI Gateway pages (gateway-quickstart, gateway-architecture, aggregation, routing-cel, admin/setup-guide, builders/discover-gateways). I did not delete them in this PR because they have ~80 inbound xrefs from modules/agents/, modules/integrations/, modules/observability/, and modules/ROOT/partials/ — too wide a cascade for this PR's scope. Tracked inline in configure-provider.adoc:5. Recommend a follow-up PR that deletes the legacy pages, retargets all inbound xrefs to the consolidated configure-provider.adoc / connect-agent.adoc, and trims the AI Gateway section in nav.adoc to the three new entries.

Standalone-ADP TODOs

Several values are accurate today (cluster-embedded view) but will need a rewrite when standalone ADP ships. TODO-marked inline:

  • Sign-in URL and IAM/role model (configure-provider.adoc:24, overview.adoc:54)
  • OIDC discovery URL, audience, service-account permission pattern (connect-agent.adoc various)
  • Whether dataplane_adp_llmprovider_* permissions are the canonical role-permission scheme post-standalone (configure-provider.adoc:226)
  • rpai install methods for Linux and Windows (connect-agent.adoc:64)

Verified against:

  • proto/public/cloud/redpanda/api/adp/v1alpha1/llm_provider.proto (origin/main)
  • apps/adp-ui/src/routes/llm-providers/{$name.index,create}.tsx (origin/main)
  • apps/aigw/internal/llm/proxy.go for the /llm/v1/providers/<name>/... URL shape
  • Screenshots of the LLM Provider detail and Create LLM provider pages from adp-production

🤖 Generated with Claude Code

@micheleRP micheleRP merged commit 71760bb into main Apr 29, 2026
4 checks passed
@micheleRP micheleRP deleted the reapply-pr559-ai-gateway-rewrite branch April 29, 2026 14:42
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