Skip to main content
Nile re-engineers PostgreSQL for multi-tenant apps, enabling to launch and scale quickly, securely, and in the most cost-effective manner. Nile can be used as a fully integrated solution or only in parts. Nile’s architecture includes storage/compute decoupling, page-level tenant isolation, global routing gateway and a database clustering technology to provide the following key benefits -
  1. Built-in tenant virtualization in Postgres for better data and vector embedding isolation and performance isolation without any RLS or complex permission logic in the application across customers.
  2. Vector embedding with RAG support for all model providers, cost-effective and auto-scales to billions of embeddings across customers
  3. Use one database in your application but get tenant-level backups, customer/tenant insights, and schema management across tenants managed by Nile
  4. Seamlessly autoscales as your customer’s usage increases and scales to zero with no cold start time
  5. Place some tenants/customers on dedicated compute in the same database and some in other regions. Nile lets you customize for cost, security, compliance, and latency for each tenant in your AI-native application without having to manage separate databases for each tenant
  6. You can scale to millions of customers and billions of vector embeddings effortlessly as Nile horizontally scales
You can read more about Nile, its architecture and concepts in the What is Nile section. Choose your starting point to explore and try out Nile

Languages

Nile is just Postgres. It works with all the tools and Postgres ecosystem. The quickstarts below covers the Javascript and Python ecosystem. You can also pick plain SQL if that is preferred.

SQL

Get started with SQL

NextJS

Get started with NextJS

Drizzle

Get started with Drizzle

Prisma

Get started with Prisma

Python

Get started with Python

Node

Get started with Node

Examples

These are end to end examples that are fully functional applications to show how easily you can build AI-native B2B applications with Nile. Feel free to fork the examples to learn more or play around with the hosted live demo.

Chat with PDF

Code Assistant

Task Genius

Sales Insight

AI Embedding Models

Nile integrates with all the popular embedding models. Pick one and follow along to build an AI-native experience for your B2B application. Learn how you can build AI applications that are secure, performant and cost effective for each of your customers.

Cohere

OpenAI

Fireworks

Google AI

Deep Infra

Voyage

Use cases

Nile is used by companies to build AI-native B2B applications. Here are some examples of how you can use Nile to build your next B2B application.

Lead Management

Task Management

Slack++

SmartSpend AI

AITravelMate

SmartLearn

Legal AI

Support AI

TalentAI

MarketingAI

HR AI

SmartNotion AI

HealthAI

SchedulerAI

SmartBooks AI

SupplyAI

FeedbackAI

OnboardIQ

Schema Migrations

Nile supports schema migrations for your tenant aware tables. You can use your favorite migration tool to manage your schema migrations.

Prisma

Drizzle

SQLAlchemy + Alembic

Django