
Rafay Abbas
Verified Expert in Engineering
Next.js Developer
Islamabad, Islamabad Capital Territory, Pakistan
Toptal member since May 20, 2026
Rafay is a senior AI engineer and full-stack developer with 7+ years of experience building AI-powered systems, RAG pipelines, and scalable SaaS platforms. He specializes in semantic search, vector databases, and LLM integration with OpenAI and Anthropic APIs, and is equally fluent across Next.js, NestJS, and AWS. His past work includes the Easypaisa app, used by over 10 million customers, and an agentic PR Copilot for journalism professionals.
Portfolio
Experience
- Next.js - 7 years
- Node.js - 7 years
- Python 3 - 6 years
- TypeScript - 6 years
- Elasticsearch - 4 years
- Retrieval-augmented Generation (RAG) - 3 years
- Vector Databases - 3 years
- LangChain - 3 years
Preferred Environment
ChromaDB, Pinecone, PostgreSQL, Python 3, Django, React, Next.js, Node.js, MySQL, Qdrant, ChatGPT, Web Development, APIs
The most amazing...
...thing I've built is a fully agentic PR Copilot that autonomously discovers stories, matches journalists, and runs outreach campaigns end-to-end.
Work Experience
Senior AI Engineer
Cult of Coders
- Built a fully agentic PR Automation Copilot — a SaaS platform that discovers trending stories, matches journalists via semantic search, drafts pitch campaigns, dispatches emails via Gmail API, and schedules follow-ups.
- Architected a custom semantic search system on a content-heavy SaaS platform, significantly improving content discovery accuracy and retrieval relevance for end users.
- Designed and shipped AI agent workflows for automation and personalization across multiple client products, integrating OpenAI and Anthropic APIs.
- Boosted platform search speed by 350% on a high-traffic application by introducing a hybrid retrieval layer with Redis and Elasticsearch.
- Designed async job queues with BullMQ and AWS SQS that processed millions of records daily, with reliable retry logic and dead-letter handling.
- Delivered full-stack features in Next.js, NestJS, GraphQL, PostgreSQL, and MongoDB across multiple client products.
- Progressed from full-stack engineer to the team's primary AI engineer, taking ownership of AI feature development across client projects.
Full-stack Engineer
Red Buffer
- Delivered end-to-end product development across the front and back ends, owning features from initial planning through production deployment.
- Integrated new technologies into existing systems on an ongoing basis, evaluating tools and patterns to keep the stack modern and maintainable.
- Mentored peer engineers on technical practices and code quality, strengthening team collaboration and overall delivery velocity.
- Managed key parts of the DevOps lifecycle, including build pipelines and deployment workflows, improving release frequency and deployment reliability.
- Collaborated with cross-functional teams to scope requirements, refine technical approaches, and ship production-ready solutions on schedule.
Full-stack Engineer
REARM
- Led end-to-end development in a cross-continental remote team, owning both front-end and back-end layers across the product.
- Engineered core application modules from scratch, establishing architecture patterns for performance and maintainability.
- Integrated early LLM-based capabilities into product features, contributing to the team's first AI-assisted functionality.
- Contributed to technical decision-making on stack and infrastructure, influencing the shift toward more scalable patterns.
- Delivered robust front-end and back-end solutions in a fast-paced agile environment.
Software Engineer | iOS Developer
Telenor Group
- Contributed to the Easypaisa iOS app, one of Pakistan's largest fintech platforms, serving over 10 million active users.
- Developed and deployed the Easypaisa and TMFB websites end-to-end, from planning through production deployment.
- Designed and built a full product website during an internship phase, gaining end-to-end experience across the full delivery lifecycle.
- Collaborated with cross-functional teams to design and ship features that improved user experience across the consumer-facing apps.
- Improved website performance and user engagement through targeted front-end and back-end optimizations.
Experience
PR Automation Copilot — Agentic AI SaaS for Journalism & PR
I served as the lead AI engineer on the project, owning the architecture and implementation of the agent orchestration layer, the semantic retrieval pipeline, and the LLM integration with OpenAI and Anthropic APIs. I also designed the async job-processing backbone that handles outreach campaigns at scale, and delivered full-stack features across the Next.js front end and NestJS back end. The product turns a multi-hour manual PR workflow into a few minutes of human review.
Semantic Search & Content Discovery System
I owned the end-to-end design and rollout: choosing the embedding strategy, tuning chunking for the platform's content types, benchmarking retrieval quality, and integrating the new pipeline into the application's existing search surfaces. The result was a significant improvement in content discovery accuracy and a noticeably better experience for users navigating large content libraries.
AI Support Chatbot for an Edtech SaaS Platform
I ingested their Zendesk help center into a vector database with daily syncs to keep articles fresh, and connected Close to pull in historical email conversations so the bot could learn from how real reps had handled similar issues. I also built and integrated internal APIs to identify incoming users, determine their role (teacher, school admin, district admin, student), and resolve their exact permissions — so the bot only suggested actions the user could actually perform. When confidence drops below the threshold, or a sensitive case is detected, the bot posts a structured handoff to a dedicated Slack channel with full context, user role, and conversation history. The system now resolves the majority of incoming tickets without human involvement and dramatically reduces the average first-response time.
Education
Bachelor's Degree in Computer Science
National University of Computer and Emerging Sciences (NUCES) - Islamabad, Pakistan
Skills
Libraries/APIs
React, Node.js, OpenAI API, Claude API, API Development, PyTorch, Gmail API, Zendesk API, Slack API
Tools
ChatGPT, Claude, Claude Code, Claude Agent SDK, Figma, Amazon Simple Queue Service (SQS), Git
Languages
Python 3, Python, TypeScript, HTML, CSS, GraphQL, JavaScript
Frameworks
Next.js, LangGraph, Django, NestJS, AWS HA
Paradigms
Model Context Protocol (MCP), Testing, API Architecture
Platforms
Docker, Visual Studio Code (VS Code), Amazon Web Services (AWS), Google Cloud Platform (GCP), AWS IoT
Storage
PostgreSQL, MySQL, Redis, Elasticsearch, Azure Cloud Services, MongoDB
Industry Expertise
Web Design, Healthcare
Other
ChromaDB, Anthropic, LangChain, Prompt Engineering, Large Language Models (LLMs), RAG Architecture, Web Development, APIs, AI Agents, Chatbots, Conversational AI, Documentation, Full-stack Development, User Experience (UX), User Stories, Artificial Intelligence (AI), LLM Integration, Observability, AI Agent Orchestration, Data Science, Design, Digital Design, Graphs, Content Management Systems (CMS), Cloud Architecture, Model Deployment, AI Governance, Agentic AI Systems, Performance Optimization, FastAPI, API Design, Performance, Cloud Infrastructure, AI Consulting, Integration, OpenAI, CI/CD Pipelines, RAG Systems, AI Architecture, Machine Learning, Retrieval-augmented Generation (RAG), Vector Search, Semantic Search, Vector Databases, eCommerce, Agentic AI, Generative Artificial Intelligence (GenAI), Business Analysis, Model Evaluation, Microsoft Azure, Data Visualization, Statistics, Solution Architecture, Enterprise Architecture, Machine Learning Operations (MLOps), Deep Learning, HIPAA, Healthcare Software, Context Engineering, Pinecone, Qdrant, Software Development, BullMQ, RAG Pipelines, Embedding Models, Close CRM API, Transformers
How to Work with Toptal
Toptal matches you directly with global industry experts from our network in hours—not weeks or months.
Share your needs
Choose your talent
Start your risk-free talent trial
Top talent is in high demand.
Start hiring