Looks like you're stuck. Need a hand?

Share This Tutorial

Views 1346

Introducing the New “Tutorial Suggestion” Algorithm

Date  |  Category Tutorial Rocks Updates
...
...
Back Back

We’ve rebuilt our tutorial recommendation pipeline from the ground up—no-nonsense, fully transparent.

1. Why the Old System Failed

2. Our Robust, Streamlined Solution

Dedicated Recommendation Service

A FastAPI microservice handles similarity lookups. Single responsibility: return the top N related tutorials.

Reliable Fallback

If the service fails, we run a SQL query: same category, within ±6 months, sorted by date proximity, limited to six results. You always receive suggestions.

3. End-to-End Workflow

  1. Client Request
    GET /get-similar-tutorials/{id}?top_n={n} hits our Flask endpoint.

  2. Primary Path
    Call the FastAPI service with the tutorial ID and desired count.

  3. On Success
    Enrich results with author and date, then return a consistent JSON payload.

  4. On Failure
    Log a warning and switch to the SQL fallback, maintaining the same output format.

  5. Final Response
    Always success: true with similar_tutorials, or success: false if the database itself fails.

4. Matching Strategy

5. Configuration & Control

6. Measurable Improvements

7. Next Steps

TL;DR

A focused FastAPI service + SQL fallback + strategic caching = faster, more cost-effective, and fully reliable tutorial recommendations.