Skip to content

docs: add dedicated web search, rerank, and moderation pages - #442

Merged
jpr5 merged 1 commit into
CopilotKit:mainfrom
Ayush7614:docs/moderation-rerank-search-pages
Sep 13, 2026
Merged

jpr5 merged 1 commit into
CopilotKit:mainfrom
Ayush7614:docs/moderation-rerank-search-pages

Conversation

@Ayush7614

Copy link
Copy Markdown
Contributor

Problem

POST /search, POST /v2/rerank, and POST /v1/moderations had no dedicated documentation pages — only subsections of the Services overview — while every sibling endpoint (embeddings, images, cohere, …) has one.

Changes

  • New docs/search/, docs/rerank/, docs/moderation/ pages following the existing docs template (endpoint table, how-it-works, runnable onSearch/onRerank/onModerate examples, exact response shapes, validation notes, journal integration, cross-links).
  • Every example and response shape was executed against a live server and matches byte-for-byte (e.g. rerank results carry only index + relevance_score; search echoes query with images: [], response_time: 0, answer: null; moderation answers model: "text-moderation-latest").
  • docs/sidebar.js: three links under LLM Features; docs/services/index.html: pointer to the new pages (overview content unchanged).

Tests

  • Verified: docs-clean-urls suite (138 tests) green — new folders satisfy the per-directory index.html rule and all clean-URL/internal-link constraints; prettier --check clean on all touched docs.

@pkg-pr-new

pkg-pr-new Bot commented Sep 13, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@copilotkit/aimock@442

commit: 92c4331

@jpr5
jpr5 merged commit f522a34 into CopilotKit:main Sep 13, 2026
14 checks passed
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