Skip to content

Comments

Similar posts: 4 closest by embedding, fallbacks when empty or no embeddings#170

Open
Xhether wants to merge 2 commits intomainfrom
charles/similarPosts
Open

Similar posts: 4 closest by embedding, fallbacks when empty or no embeddings#170
Xhether wants to merge 2 commits intomainfrom
charles/similarPosts

Conversation

@Xhether
Copy link
Contributor

@Xhether Xhether commented Feb 24, 2026

Overview

Changed the similar listings endpoint so now that it only returns up to 4 similar listings (exactly what the frontend displays) for each post.

There's fallbacks in place for when we can't find similar posts

Changes Made

Screenshot 2026-02-23 at 10 01 51 PM

Reduced number of listings returned and added fallbacks

Test Coverage

Tested locally

Next Steps (delete if not applicable)

Change frontend to cache similar postings to reduce # of api calls...

…edding

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant