Albara Hassan

Kinly Senior Backend Engineer Aug 2025 to present

A production RAG pipeline for a UK benefits platform

I own the knowledge-base pipeline end to end: ingestion and embedding on Azure Functions, vector search in Cosmos DB, answers served by an OpenAI-backed FastAPI service.

Outcome

  • <3 s to answer
  • 500+ documents indexed
  • Hourly incremental ingest

Stack

  • Python
  • FastAPI
  • Azure Functions
  • Azure Cosmos DB
  • Vector search
  • OpenAI API
  • Embeddings
Ask me about this
Documents flow through Azure Functions into embeddings and Cosmos DB vector search, and the FastAPI service answers in under 3 seconds.

The job

Kinly is a UK benefits platform. Its team needs answers grounded in a large, changing knowledge base, fast enough to use while talking to someone. I own the pipeline that makes that possible, from the moment a document changes to the moment an answer comes back.

What I built

  • Ingestion and embedding on Azure Functions, writing into Azure Cosmos DB, which also serves the vector search.
  • An OpenAI-backed FastAPI service that retrieves the right passages and answers in under 3 seconds over 500+ documents.
  • Scheduled ingestion for freshness: an hourly incremental ingest, plus a weekly full resync and external web crawl, staggered into the lowest-traffic window.
Ask the pipeline

Pick a question

500+ documents

hourly incremental ingest

Azure Functions

ingest + embed

Cosmos DB

vector search

FastAPI + OpenAI

grounded answer

Answer 0 sources cited

Answered in under 3 s

Illustration. In production: 500+ documents, answers in under 3 s, ingest hourly with a weekly full resync.

Also at Kinly: forms that fill themselves

I shipped eligibility-form prepopulation from website enquiries through HubSpot and Cosmos DB: it triggers when an agent opens the form, maps fields through configuration across 8 field groups, and uses freeze rules so automation never overwrites an edit an agent made.

More work

Kinly Senior Backend Engineer Aug 2025 to present

From 20-second endpoints to a 0.5 to 0.7 s p95

I took the slowest endpoints from 20 s to under 2 s, removed every latency spike for ~270 users, and cut slow requests by more than 80%, with no new errors.

  • 20 s to <2 s slowest endpoints
  • −80%+ requests over 3 s
  • 0 p95 spikes over 2 s

Rayna Corp Full Stack Engineer Oct 2025 to May 2026

Database migrations that stopped timing out

I moved TypeORM migrations off an API Gateway endpoint capped at 30 seconds onto a dedicated Lambda with a 15-minute window, run idempotently at three points of the release flow.

  • 30 s to 15 min migration time limit
  • 3 automated run points
  • 1 onboarding email, not 2

Epiisa Software Engineer Sep 2021 to Jul 2025

Legal RAG and an AI email assistant

At Epiisa I built E-Advokat, a legal AI agent that cites its sources, and the backend of CueLoop, an AI email and calendar assistant.

  • Cited answers, to the passage
  • Semantic search over email threads
  • Multi-tenant FastAPI with RBAC