Skip to main content

Www.rahatupu.net · Certified & Easy

app = FastAPI() model = AlternatingLeastSquares(factors=64, regularization=0.01, iterations=20)

| Layer | Tech | Why | |------|------|-----| | | Node.js + Express | Light, easy to integrate with existing JS front‑end. | | Search Engine | Elasticsearch (hosted on Elastic Cloud) | Powerful full‑text search, fuzzy matching, relevance tuning. | | Database | PostgreSQL | Relational data, easy to join with search results. | | Recommendations | Python micro‑service (FastAPI) using a simple collaborative‑filtering model (implicit ALS) | Decouples ML from main API, can scale independently. | | Frontend | React (or Next.js) + TanStack Query | Declarative data fetching, cache management. | | Hosting | Docker Compose for dev → Kubernetes (or Fly.io) for prod | Consistent environments, easy scaling. | www.rahatupu.net

router.get('/', async (req, res) => { const q, page = 1, size = 10 = req.query; const from = (page - 1) * size; | | Recommendations | Python micro‑service (FastAPI) using

Titles, descriptions, and user search queries heavily utilize Swahili terminology (e.g., "wasmo", "kutombana", "kuma") to match regional search intent. | router