Skip to content

Add related pages with AI-suggested options (#468) - #475

Open
Raghaddahi wants to merge 5 commits into
mainfrom
related-pages-with-ai-suggestions
Open

Add related pages with AI-suggested options (#468)#475
Raghaddahi wants to merge 5 commits into
mainfrom
related-pages-with-ai-suggestions

Conversation

@Raghaddahi

@Raghaddahi Raghaddahi commented Aug 16, 2026

Copy link
Copy Markdown
Member

Fixes #468

Description

Adds a "Related pages" section—editors can manually curate up to 5 related pages per page. Displays as a card grid on public pages and as a list in the llms.txt/markdown export.

Also adds AI-powered suggestions via AIMultipleChooserPanel backed by a pgvector PageIndex.

Custom agent (apps/core/agents.py)

wagtail-ai's default SuggestedContentAgent has no locale filtering and uses noisy preview text as the search query. LocalizedSuggestedContentAgent overrides it to build a focused query from title + search_description + first body paragraph, and filter suggestions to the editor's locale.

All pages need a good search_description

The agent builds its search query from each page's search_description. 12 pages have none. Editors should ensure every new page has a concise, specific search_description.

pgvector required

Docker Compose and CI Postgres images updated to pgvector/pgvector:pg17. SQLite works for tests but the vector index requires Postgres.

Testing

Screenshot From 2026-08-16 04-47-29 Screenshot From 2026-08-16 04-46-59

AI usage

AI (GLM 5.2, Claude Sonnet 5) generated test files, HTML/SCSS files and assisted with the rest of the code.
The code was reviewed by me.
The PR description written by AI.

@RealOrangeOne
RealOrangeOne temporarily deployed to wagtail-guid-related-pa-zqd3wv August 16, 2026 01:28 Inactive
@RealOrangeOne
RealOrangeOne temporarily deployed to wagtail-guid-related-pa-zqd3wv August 16, 2026 01:37 Inactive
@RealOrangeOne
RealOrangeOne temporarily deployed to wagtail-guid-related-pa-zqd3wv August 16, 2026 01:52 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🔖 Ready

Development

Successfully merging this pull request may close these issues.

Related pages link suggestions

2 participants