Skip to content

Conversation

@Chesblaw
Copy link
Contributor

@Chesblaw Chesblaw commented Oct 1, 2025

Description
A prototype recommendation engine suggests events based on past user purchases. It uses a straightforward collaborative filtering approach.

A new FastAPI endpoint, /recommend-events, has been added. This includes the relevant request and response models, as well as test cases.

Changes made
Added a mocked dataset called mock_user_events that shows users and their purchased events.

Implemented a collaborative filtering algorithm.

This algorithm finds similar users based on event overlap.

It recommends up to three events that the current user has not yet attended.

Created a new endpoint:

POST /recommend-events

Request: {"user_id": ""}

Response: {"recommendations": ["event1", "event2", ...]}

Added error handling.

It returns a 404 error with a JSON body if the user is not found.

Added unit tests in tests/test_recommend.py.

image

@BigBen-7
Copy link
Collaborator

BigBen-7 commented Oct 1, 2025

@Chesblaw resolve conflicts

@Ibinola Ibinola merged commit 1a9e241 into Lead-Studios:main Oct 5, 2025
1 check failed
@Chesblaw
Copy link
Contributor Author

Chesblaw commented Oct 6, 2025

Hey@BigBen-7 i think someone merged it

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.

3 participants