Skip to main content
Get up and running with LiquidIndex in under 10 minutes. This guide walks you through building a complete multi-tenant RAG system that your users can immediately start using.

Prerequisites

1

Create a Project

Create a project and generate an API key in the LiquidIndex dashboard (requires card on file).
2

Install Dependencies

3

Set Environment Variables

Create a .env file in your project root:
.env

Build Your RAG Backend

This guide shows you how to build a Multi-Tenant system. You’ll create three simple endpoints that handle the complete RAG workflow: customer creation, file uploads, and semantic search.

1. Create a Customer

Create an endpoint to register new customers in your system. Each customer gets their own isolated data space.
lqx.js
You can view the API reference here

2. Create an Upload Session

Generate a secure upload URL where your customers can upload their documents. LiquidIndex handles all the file processing and indexing automatically.
lqx.js
You can view the API reference here

3. Query Customer Data

Perform semantic search across a customer’s uploaded documents. Get relevant chunks and AI-generated answers in one API call.
lqx.js
You can view the API reference here

Complete Working Example

Copy and paste this complete server code to get started immediately. This gives you a fully functional RAG backend in under 50 lines of code:
app.js

Test Your Implementation

1

Start Your Server

2

Create a Customer

3

Create Upload Session

Visit the returned URL to upload documents.
4

Query the Data

What’s Next?