Related content on posts and events
Back to our planProblem
A neighbor reading a post or an event sees lists that don't know what the page is about: related posts only when an editor picked them, "You May Also Like" as the newest posts, "Upcoming Events" as the next events by date. Events can't point back to the posts about them at all.
Proposed fix
Goal: every post and event shows the content that is really about the same thing, with an editor's hand-picked choice always winning, and nothing shown when nothing fits.
In scope (the sub-issues):
- Hand-picked related events on posts, with a Payload join field so each event lists the posts that link to it (native Payload, no custom code). This stays the base and the override.
- Related content matched by meaning across all content types, computed off the server, shown with no editor step, upcoming events only. No large language model.
Out of scope: search by meaning (#1229 shares the same vectors later), a large language model of any kind, and anything computed on the VPS beyond comparing vectors.
Owner decision (summary, 2026-11-26, Claude session, voice): hand-picked related events on posts plus a join field; automatic matching by embeddings on top, across all content types, upcoming events only; no large language model; embeddings computed in a GitHub Action or by an API and stored with the content; the server only compares vectors (KVM 1, 1 CPU, 4 GB RAM); research native, then official, then well-established open source first; he signs off on any new library.
Supersedes the approach in #1484 (the owner's decision replaces its hybrid with a scout and a judging model); #1484 keeps its history and is labeled proposed-close for the owner.
Existing work compared
Searched open and closed issues for related, recommend, semantic, embedding, similar, vector and join field.
- #1484 (related posts and events chosen by meaning, research): the same goal. Its proposal chose a scout plus a judging model; the owner has now chosen embeddings with no model. Its storage idea (links in their own collection, agents create-only) is a fallback recorded in sub-issue (b).
- #1229 (semantic search, under #1227): also needs embeddings. Not duplicated: it embeds a search query at request time. It can reuse the stored vectors from (b); each issue notes the other.
- #677 (related content layout on the page): where the lists sit. These issues decide what goes in them and feed #677's layout.
- #576 (tag framework): tags are a possible extra signal; nothing here depends on it.
This is new work: no open issue covers the related-events field, the join field or the embeddings pipeline.
Acceptance criteria
- Not done: Both sub-issues are closed.
- Not done: On a post and on an event, one "Related" block shows hand-picked items first, then items matched by meaning, upcoming events only, and is hidden when nothing qualifies.
- Not done: No model call or embedding computation runs on the server.
Files likely touched
None directly: the sub-issues name theirs.
Must not touch
None.
Generated by Claude Code, opens in a new tab
Issues in this epic
#1496
#1497