← Back to all projects
🏢

My product Open source

TenantMind-AI

Multi-tenant AI for property management

An AI platform that lets property-management teams ask questions about lease documents in plain language and automate tenant workflows — with each organisation’s data kept completely isolated.

tenant isolationRAG on leasesLLM fallback

Built for: Property-management companies and SaaS operators serving many of them.

↓ Scroll to explore the problem, architecture and stack

😩

The problem

Answers about leases are buried in long PDFs, and AI tools for multiple clients risk leaking one company’s documents into another’s answers.

💡

Why it matters

Per-tenant authentication, request context and vector collections make cross-tenant leaks structurally impossible, while staff get instant, grounded answers.

What you can do with it

01Ask questions about leases in plain language and get grounded answers.
02Upload lease documents that are indexed per organisation.
03Automate common tenant workflows.
04Keep every organisation’s data, vectors and prompts isolated.

How it’s built

A simplified view of the architecture — follow the dots as a request moves down the layers.

Users
Property managers
Tenants
Identity
KeycloakOpenID Connect
API
FastAPIper-tenant context
LLM gatewayGemini · Groq · OpenRouter · Ollama
Data
MongoDBper-tenant data
Qdrantcollection per tenant

A request, step by step

  1. A user signs in through Keycloak; the token identifies their organisation.
  2. FastAPI resolves the tenant context for every request.
  3. Questions search only that tenant’s Qdrant collection for relevant lease passages.
  4. The LLM gateway answers from those passages, falling back across providers and logging latency and tokens.

Tech stack

Backend
PythonFastAPICelery
Data
MongoDBQdrant
Security
Keycloak🔑OAuth / OIDC
AI
📚RAGGeminiOllama

What I built

  • A multi-tenant FastAPI backend with Keycloak-based OpenID Connect authentication and per-tenant request context resolution.
  • A multi-provider LLM gateway with automatic fallback across Gemini, Groq, OpenRouter and Ollama, logging latency and token usage per call.
  • A Retrieval-Augmented Generation endpoint using per-tenant Qdrant collections for lease-document grounding.