> ## Documentation Index
> Fetch the complete documentation index at: https://thenile.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Nile - PostgreSQL re-engineered for B2B apps

![](https://mintcdn.com/nile/SZ6JYQiPYP1_QgSP/images/nile-doc-banner-5.png?fit=max\&auto=format\&n=SZ6JYQiPYP1_QgSP\&q=85\&s=d033bd882f3562b03a248505eaa36119)

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](https://website-git-fixlanding-niledatabase.vercel.app/docs/getting-started/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.

> [card] [SQL](https://thenile.dev/docs/getting-started/languages/sql.md)
>
> Get started with SQL

> [card] [NextJS](https://thenile.dev/docs/getting-started/languages/nextjs.md)
>
> Get started with NextJS

> [card] [Drizzle](https://thenile.dev/docs/getting-started/languages/drizzle.md)
>
> Get started with Drizzle

> [card] [Prisma](https://thenile.dev/docs/getting-started/languages/prisma.md)
>
> Get started with Prisma

> [card] [Python](https://thenile.dev/docs/getting-started/languages/python.md)
>
> Get started with Python

> [card] [Node](https://thenile.dev/docs/getting-started/languages/node.md)
>
> 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.

> [card] [Chat with PDF](https://thenile.dev/docs/getting-started/examples/chat_with_pdf.md)
>
> Build a chat interface for your PDF documents

> [card] [Code Assistant](https://thenile.dev/docs/getting-started/examples/code_assistant.md)
>
> Build an AI code assistant

> [card] [Task Genius](https://thenile.dev/docs/getting-started/examples/task_genius.md)
>
> Build a task management app with AI

> [card] [Sales Insight](https://thenile.dev/docs/getting-started/examples/sales_insight.md)
>
> Build a sales intelligence app

## 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.

> [card] [Cohere](https://thenile.dev/docs/ai-embeddings/embedding_models/cohere.md)
>
> Use Cohere's embedding models

> [card] [OpenAI](https://thenile.dev/docs/ai-embeddings/embedding_models/open_ai.md)
>
> Use OpenAI's embedding models

> [card] [Fireworks](https://thenile.dev/docs/ai-embeddings/embedding_models/fireworks.md)
>
> Use Fireworks' embedding models

> [card] [Google AI](https://thenile.dev/docs/ai-embeddings/embedding_models/google.md)
>
> Use Google's embedding models

> [card] [Deep Infra](https://thenile.dev/docs/ai-embeddings/embedding_models/deepinfra.md)
>
> Use Deep Infra's embedding models

> [card] [Voyage](https://thenile.dev/docs/ai-embeddings/embedding_models/voyage.md)
>
> Use Voyage's embedding models

## 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.

> [card] [Lead Management](https://thenile.dev/docs/getting-started/usecases/lead-management.md)
>
> AI-powered lead management system for B2B sales

> [card] [Task Management](https://thenile.dev/docs/getting-started/usecases/issue-tracking.md)
>
> AI-driven task and issue tracking system

> [card] [Slack++](https://thenile.dev/docs/getting-started/usecases/slack.md)
>
> Built with AI to power work

> [card] [SmartSpend AI](https://thenile.dev/docs/getting-started/usecases/expensify.md)
>
> Set teams free from manual expenses

> [card] [AITravelMate](https://thenile.dev/docs/getting-started/usecases/tripactions.md)
>
> Your business trips managed by AI

> [card] [SmartLearn](https://thenile.dev/docs/getting-started/usecases/schoology.md)
>
> AI Intelligence for the Modern Classroom

> [card] [Legal AI](https://thenile.dev/docs/getting-started/usecases/legal.md)
>
> AI-powered legal document management

> [card] [Support AI](https://thenile.dev/docs/getting-started/usecases/support.md)
>
> AI-enhanced customer support platform

> [card] [TalentAI](https://thenile.dev/docs/getting-started/usecases/hiring.md)
>
> AI-driven hiring and recruitment

> [card] [MarketingAI](https://thenile.dev/docs/getting-started/usecases/marketing.md)
>
> AI-powered marketing campaign management

> [card] [HR AI](https://thenile.dev/docs/getting-started/usecases/hr.md)
>
> Intelligent HR management system

> [card] [SmartNotion AI](https://thenile.dev/docs/getting-started/usecases/notion.md)
>
> Crafting Organized Thoughts with AI

> [card] [HealthAI](https://thenile.dev/docs/getting-started/usecases/health.md)
>
> AI-enhanced patient management system

> [card] [SchedulerAI](https://thenile.dev/docs/getting-started/usecases/scheduler.md)
>
> Intelligent appointment scheduling

> [card] [SmartBooks AI](https://thenile.dev/docs/getting-started/usecases/accounts.md)
>
> Your Intelligent Accounting Partner

> [card] [SupplyAI](https://thenile.dev/docs/getting-started/usecases/supply.md)
>
> AI-powered supply chain management

> [card] [FeedbackAI](https://thenile.dev/docs/getting-started/usecases/feedback.md)
>
> Intelligent feedback collection and analysis

> [card] [OnboardIQ](https://thenile.dev/docs/getting-started/usecases/onboarding.md)
>
> Transform Customer Onboarding with AI

## Schema Migrations

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

> [card] [Prisma](https://thenile.dev/docs/getting-started/schema_migrations/prisma.md)
>
> Use Prisma for schema migrations

> [card] [Drizzle](https://thenile.dev/docs/getting-started/schema_migrations/drizzle.md)
>
> Use Drizzle for schema migrations

> [card] [SQLAlchemy + Alembic](https://thenile.dev/docs/getting-started/schema_migrations/alembic.md)
>
> Use SQLAlchemy + Alembic for schema migrations

> [card] [Django](https://thenile.dev/docs/getting-started/schema_migrations/django.md)
>
> Use Django for schema migrations


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.