Skip to Content
LightRAG

LightRAG Hosting: A Knowledge-Graph RAG Server You Run Yourself

With our LightRAG hosting we install LightRAG Server on a virtual server opened for you. LightRAG is an open-source retrieval-augmented generation system from the HKUDS group on GitHub. It splits each document into chunks, has a language model pull out the entities and the relationships between them, and stores the result twice: as a knowledge graph and as a vector index. A question is answered from context gathered out of both.

The WebUI and the REST API share one address, and the WebUI asks for a username and password. No language model or embedding model is included. LightRAG 1.5.8 has no model settings screen, so you connect to the server over SSH and put your OpenAI (or OpenAI-compatible) key into its config file. Until then you can sign in and look around, but uploads will not be indexed and queries will fail.

Install

From $15/mo

Comes with

  • Ubuntu Server 24.04 LTS (Noble Numbat) - 64bit
  • Docker
  • HTTPS address
  • Admin account set up during installation
  • Full root access
LightRAG1.5.8
LightRAG Documents tab listing two sample documents with Failed status and the status filters

Installation

What runs on the server

  • API and WebUI in one container

    LightRAG 1.5.8 runs from the project's official image on GitHub's registry, pinned by tag and digest. The WebUI, the REST API and the Ollama-compatible endpoints are one process behind the server's HTTPS proxy; the app's own port is not published.

  • Built-in sign-in, one account

    LightRAG has no user table and no sign-up page. Accounts come from a list the server reads when it starts, and on our install that list holds only your admin account. Before handover we confirm the server turns down a wrong password and issues a session for the correct one.

  • A separate key for programs

    Every install gets its own LIGHTRAG_API_KEY. Without it the Ollama-compatible /api routes are refused: on our test install an /api/tags request with no key came back 403. You read the key from the .env file on the server.

  • File-based storage

    The graph, the vectors and the document status sit in LightRAG's default file stores (JSON, NanoVectorDB, NetworkX) on Docker volumes. We did not add a database. LightRAG's own README describes these stores as meant for small-scale use.

  • Five retrieval modes

    The Retrieval tab lets you pick local, global, hybrid, naive or mix. The README makes mix the default, combining graph and vector retrieval. A Bypass option sends the question straight to the model with no retrieved context.

  • About 250 MiB at rest

    With no documents loaded, LightRAG used 244 MiB of memory on our test install. The default stores keep their data in memory, so usage climbs as the document set and graph grow. The smallest plan offered for LightRAG has 2 GB of RAM.

Screens

LightRAG on our test install

Click a screenshot to see it larger.

  • Documents tab: two sample files were chunked, but entity extraction failed because no model key had been entered yet.
  • The Upload Documents dialog with the file types LightRAG 1.5.8 accepts, from PDF, DOCX and XLSX to Markdown and source code.
  • Retrieval tab with the mode list open (Mix, Hybrid, Naive, Local, Global, Bypass) and token budgets on the right; a /hybrid question typed, not sent.
  • Interactive LightRAG Server API docs at /docs: scan, upload and text-insert endpoints.

Use cases

Where LightRAG fits

  • Documents that refer to each other

    Contracts, specifications and internal policies often mention the same people, products or organisations in different places. LightRAG merges those mentions into a single node, and the Knowledge Graph tab lets you browse the nodes and their links visually.

  • Querying from an Ollama client

    LightRAG presents itself as an Ollama model called lightrag:latest. Its documentation describes adding it to Open WebUI as an Ollama-type connection, with the API key as the connection key. We have not tried that connection.

  • REST calls from your own code

    There are REST endpoints for uploading files, inserting text, querying and reading the graph, with interactive docs at /docs. Programs send the install's API key in an X-API-Key header, and upload calls return a track ID you can poll for progress.

  • Comparing retrieval modes

    Ask the same question in naive mode (text chunks only) and in mix mode (graph plus chunks) and compare. The Parameters panel also sets how many entities and chunks come back, the token budgets and the response format.

Steps

From order to first query

  1. 01

    Pick a plan

    LightRAG comes preselected on the order page, and plans without enough resources for it are disabled. Plans that fit start at $15.

  2. 02

    Install and sign-in checks

    After payment the server is created and LightRAG installed. We try a wrong password, the right password, a request with no session and an Ollama request with no key. When all four behave as expected the service normally goes live and your details arrive by e-mail.

  3. 03

    Model key, then a document

    Over SSH, write your provider key into .env and recreate the container. Then upload a first file on the Documents tab and, once processing finishes, ask about it on the Retrieval tab.

Packages

Packages for LightRAG

Only packages that meet the minimum LightRAG needs are listed; prices are monthly.

  • USA 1

    Lowest-priced package that runs this app

    $15/mo

    4 vCPU4 GB RAM30 GB NVMe

    Install
  • USA 2

    $18/mo

    4 vCPU6 GB RAM40 GB NVMe

    Install
  • USA 3

    $22/mo

    4 vCPU8 GB RAM50 GB NVMe

    Install
  • USA 4

    $27/mo

    4 vCPU10 GB RAM60 GB NVMe

    Install
  • USA 5

    $33/mo

    4 vCPU12 GB RAM70 GB NVMe

    Install
  • USA 6

    $37/mo

    6 vCPU14 GB RAM80 GB NVMe

    Install
  • USA 7

    $40/mo

    6 vCPU16 GB RAM90 GB NVMe

    Install
  • USA 8

    $46/mo

    8 vCPU18 GB RAM100 GB NVMe

    Install

Technical

Technical details

App version
1.5.8
Operating system
Ubuntu Server 24.04 LTS (Noble Numbat) - 64bit
Minimum CPU
2 vCPU
Minimum memory
2 GB
Minimum disk
15 GB

Adding your model key over SSH

LightRAG needs two models: a language model that extracts entities and relationships and writes answers, and an embedding model that turns text into vectors. The WebUI has nowhere to choose them; the server reads them from environment variables when it starts. On our install those variables carry the OpenAI defaults from LightRAG's sample config, with anahtar_girilmedi (Turkish for "no key entered") in place of each key.

The app lives in /opt/altinsoft/app on the server, and the model lines are at the end of the .env file in that folder, under a short comment.

Model lines in .env and what they hold after installation
LineValue as installedPurpose
LLM_BINDINGopenaiType of language model provider
LLM_BINDING_HOSThttps://api.openai.com/v1Provider API address
LLM_BINDING_API_KEYanahtar_girilmediYour key for the language model
LLM_MODELgpt-6-lunaLanguage model name
EMBEDDING_BINDING / _HOSTopenai, https://api.openai.com/v1Embedding provider and address
EMBEDDING_BINDING_API_KEYanahtar_girilmediYour key for embeddings
EMBEDDING_MODEL / EMBEDDING_DIMtext-embedding-3-large, 3072Embedding model and vector size
  • 1. Put the key in

    Connect over SSH and replace both anahtar_girilmedi values in .env with your own key. Keep spaces, quotes, # and $ out of it; the file follows Docker Compose's .env syntax.

  • 2. Recreate the container

    Run cd /opt/altinsoft/app, then docker compose -p altinsoft-app up -d. Keep the -p altinsoft-app part: the install runs under that project name, while the bare command treats the folder as a separate Compose project called "app" (we checked this on our test install). On our test install this recreated the container with the new key and the uploaded documents were still there.

  • 3. Settle the embedding model first

    The README asks you to fix the embedding model before indexing and keep it for queries. According to the 1.5.8 release notes, a server whose workspace already holds vectors refuses to start if the embedding model changes. If you want a different model, change EMBEDDING_MODEL and EMBEDDING_DIM before the first upload.

  • 4. Providers other than OpenAI

    LightRAG's documentation lists ollama, openai (OpenAI-compatible servers included), azure_openai, bedrock, gemini and lollms bindings. For an OpenAI-compatible service, changing LLM_BINDING_HOST may be all it takes. Beyond sending a dummy key to the OpenAI binding, we have tried none of these.

The language LightRAG writes its summaries and entity descriptions in is controlled by SUMMARY_LANGUAGE, which defaults to English. Our install leaves it at the default, and with no model on the install we could not see which language Turkish documents produce.

Sign-in, sessions and API access

  • WebUI sign-in

    Opening the address brings up LightRAG's own sign-in screen. The username, admin, is in your handover e-mail, and the password comes through the one-time link sent with it. In the source code a session token lasts 48 hours by default and is renewed while you keep using it.

  • Failed-login limit

    After five failed attempts for the same username from the same address, LightRAG answers sign-ins with HTTP 429 for five minutes. Behind the server's proxy every visitor appears to come from one address, so someone who knows the username can lock the account for five minutes. It does not help them guess the password.

  • The API key

    The install's API key is the LIGHTRAG_API_KEY line in .env. REST routes expect it in an X-API-Key header; the Ollama-compatible routes also take Authorization: Bearer. Do not send the key and a session token in the same request, because the token is checked first.

  • What answers without signing in

    Besides /health and the auth-status route, the API description pages (/docs, /redoc, /openapi.json) open without signing in; they describe the endpoints and hold no data. On our test install the document list and graph endpoints returned 401 without a session, and the Ollama routes 403 without the key.

There is no screen for creating more accounts. LightRAG's documentation says only an administrator account is supported for now and that a full account system is still to come, so everyone using the WebUI shares one login.

Password changes, backups and updates

  • Changing the password

    Because the account comes from a list read at start-up, the password cannot be changed in the WebUI. Put the new password on the APP_ADMIN_PASSWORD line in .env, then run docker compose -p altinsoft-app up -d in /opt/altinsoft/app. On our test install the old password then got 401 and the new one 200. Leave spaces, quotes, # and $ out of it.

  • Getting your details again

    The installed-app card in our customer panel can resend your sign-in details. The new link shows the password set at installation, which stops working once you change it in .env.

  • Where the data is

    The graph, vectors, document status and cache are on the lightrag_storage volume; uploaded files are on lightrag_inputs. Removing those volumes empties the knowledge base. Backing up the server is your responsibility.

  • Updates

    We set up no scheduler that upgrades LightRAG on its own; the compose file ties the image to a version tag and digest. LightRAG's release notes cover storage migrations and embedding rules between versions, so read them and decide when and how to upgrade.

FAQ

Frequently asked questions

9 questions

Does the install come with a language model?

No. The server runs LightRAG Server only: no language model, no embedding model and no provider key. You add your key to .env over SSH. Until you do, the sign-in page and the WebUI work, but indexing and queries end in a provider error.

Why can't I enter the model key in the WebUI?

LightRAG 1.5.8 has no model settings screen. Provider, model and key are read from environment variables when the server starts, so the key is changed in .env over SSH and takes effect once you run docker compose -p altinsoft-app up -d.

What do I get to sign in with?

The address, the username admin, and a one-time link that shows the password. The address opens LightRAG's own sign-in screen. The API key that programs need is not in the e-mail; it is in the .env file on the server.

Which languages does the WebUI have?

LightRAG 1.5.8 ships English, Chinese (simplified and traditional), Japanese, Korean, German, French, Russian, Ukrainian, Arabic, Indonesian and Vietnamese. You can upload documents and ask questions in other languages too; how well that works depends on the model you connect.

Can my colleagues have their own accounts?

Not from the WebUI. LightRAG reads its accounts from a list at start-up, and our install puts one account on it. Its documentation says an account and permission system is planned; for now everyone shares the same login.

How many documents can I load?

Our install uses LightRAG's default file stores, which per the README keep the dataset in the server's memory, so RAM sets the limit. The README recommends a database backend such as PostgreSQL for large collections; there is none on our install. A single upload is capped at 100 MB by default.

How do I see which version is installed?

The WebUI shows it in the top-right corner; our test install read v1.5.8/0355, the second number being the API version. A new order is installed with the LightRAG version in our catalogue on that day. Currently 1.5.8.

Lost the admin password?

Still on the original one? Request a fresh copy of your sign-in details in the customer panel. Already changed it? connect over SSH, set a new value on the APP_ADMIN_PASSWORD line in .env and run docker compose -p altinsoft-app up -d in the same folder; LightRAG restarts with it.

What if the installation does not complete?

The service normally goes live once LightRAG is running and the sign-in checks have passed. If a step fails, the customer panel shows it; our support team runs the install again or gives you the server without LightRAG, and you get an e-mail whichever it is.

Catalogue

LightRAG

Get LightRAG installed on your server

Pick your package and pay; the app's installation starts with your order.