Project

General

Profile

Actions

dev #2957

open

dev #2956: [Module] Sprint 13

[BE] Implement feedbacks on trending, recommendation apis, and tool type names

Added by Zahid Hassan 8 months ago.

Status:
Complete
Priority:
High
Assignee:
Target version:
Start date:
08/21/2025
Due date:
% Done:

100%

Estimated time:
2:00 h
Spent time:

Description

Summary

This introduces enhancements to the tools functionality by integrating interval-based logic for both trending and personalized recommendations. It also updates tool type naming across seed data and controllers to ensure consistency. This also updates the validateZodSchema middleware to give more detailed error response.

Changes

  • Middleware

    • Updated validateZodSchema middleware to provide more detailed error messages.
  • Trending Tools

    • Added interval option in the controller.
    • Added intervalInDays as an optional query parameter.
    • Added intervalInDays in the common toolValidation.ts file which is used to validate query params for get all tools, search, trending, and recommendation apis.
    • Updated variables.ts with new weights to calculate trending score.
  • Recommendations

    • Incorporated interval logic inside the recommendation scoring function.
    • Passed intervalInDays as a parameter to worker functions for trending and recommendation processing.
  • Tool Types

    • Updated seed data with revised tool type names.
    • Renamed seedCategories function to seedToolTypes for clarity and consistency.
    • Updated prompt for Gemini inside the search controller to align with new tool type names.
Actions

Also available in: Atom PDF