Suparth Narayan Ghimire

Senior Software Engineer / Tech Lead

I lead engineering on AiChat at reAlpha, where I work mostly on multi-tenant backends and LLM features.

Kathmandu, Nepal

GitHub activity

contributions
3,411
active days
247
longest streak
27days

01Systems

On AiChat, a B2B conversational AI platform at reAlpha, my work spans the multi-tenant backend, the RAG and LLM pipeline, the channel integrations, sign-in, and the analytics pipeline. The diagram shows how those parts fit together.

aichat.com / system overview
01Channels
02Core
03Async
04Intelligence
05Data

Hover or tap a component to see what it does and what it connects to, and tap it again to clear. Select Trace a message to follow one WhatsApp message through the system.

02My contributions

  1. Prisma
    ▸tenant_0001▸tenant_0002▸tenant_0003
    × thousands of schemas
    01

    Schema-per-tenant Postgres

    One schema per organization, kept reliable across thousands of them through connection pooling, query tuning, and migrations.

  2. DocsIndexRetrieveLLM
    02

    RAG knowledge bases and flows

    Configurable knowledge bases with document indexing and contextual retrieval, plus the flows that drive each conversation.

  3. RDSDMSRedshift
    03

    Analytics on a separate warehouse

    AWS DMS copies production data into Redshift Serverless, so reporting runs on the warehouse instead of the live database.

  4. WhatsAppMessengerInstagramHubSpotShopifyMeta Business
    04

    Third-party integrations

    Connected AiChat to Meta's messaging apps for conversations and to HubSpot and Shopify for business data.

  5. SAML / OIDCStytchSession
    05

    Enterprise sign-in

    Organization-level identity on Stytch B2B, with SAML and OIDC single sign-on and session management.

  6. SubscriptionStripeInvoice
    06

    Subscriptions and invoicing

    Integrated Stripe to handle subscription billing and invoices.

03Work

years of professional experience
6+
people I lead across engineering, design, and QA
10+

Dublin, OhioreAlphaAiChat
  • Lead a team of 10+ engineers, designers, and QA, and work on the architecture and delivery of AiChat, a B2B conversational AI platform.
  • Designed the multi-tenant backend in NestJS, PostgreSQL, and Prisma, with a separate schema for each of thousands of organizations.
  • Built the LLM features, including configurable RAG knowledge bases, document indexing, and retrieval, plus integrations with HubSpot, Shopify, and Meta Business.
  • Built messaging for web chat, WhatsApp, Messenger, and Instagram, with asynchronous processing and separate delivery for each channel.
  • Designed the analytics setup, which uses AWS DMS to replicate data from RDS into Redshift Serverless for reporting across tenants.
  • Implemented enterprise sign-in with Stytch B2B, including organization-level identity, SAML and OIDC single sign-on, and session management.
  • Built background processing on AWS, Redis, and BullMQ for tenant-specific jobs.
  • Made tenant database operations more reliable through connection-pool management, query optimization, and schema migrations across thousands of schemas.
  • TypeScript
  • NestJS
  • Next.js
  • Python
  • PostgreSQL
  • Prisma
  • Redis
  • BullMQ
  • Redshift
  • AWS DMS
  • RDS
  • S3
  • SQS
  • SES
  • Stytch
  • OpenAI
  • Docker

04Stack

Languages
TypeScriptJavaScriptPython
Frontend
ReactNext.js
Backend
NestJSFastAPIExpressSocket.IOMCP
AI
LLMsRAGMCP servers & clients
Data
PostgreSQLMySQLRedshiftMongoDBRedisFirebase
Infra
AWSAzureGCPCloudflareDockerNginxLinux

05Contact

Email is the best way to reach me.