{
  "id": "lightrag",
  "name": "LightRAG",
  "slogan": "Graph based retrieval augmented generation server with a web UI and API. Runs on local file storage; point it at a model provider with the LLM and embedding settings.",
  "category": "AI",
  "categorySlug": "ai",
  "tags": [
    "single-container"
  ],
  "license": {
    "spdx": "MIT",
    "class": "permissive"
  },
  "memoryMiB": 1024,
  "architectures": {
    "amd64": "unknown",
    "arm64": "unknown"
  },
  "trust": "listed",
  "verified": false,
  "status": "active",
  "installCommand": "levelrail-cli templates install lightrag --name my-lightrag",
  "deployFormats": [
    "cli",
    "api"
  ],
  "url": "https://levelrail.com/templates/lightrag/",
  "docsUrl": "https://github.com/HKUDS/LightRAG/blob/main/lightrag/api/README.md",
  "sourceRepo": "https://github.com/HKUDS/LightRAG",
  "markdownUrl": "https://levelrail.com/templates/lightrag.md",
  "jsonUrl": "https://levelrail.com/templates/lightrag.json",
  "indexable": true,
  "description": "Graph based retrieval augmented generation server with a web UI and API. Runs on local file storage; point it at a model provider with the LLM and embedding settings.",
  "pinnedTag": "v1.5.7",
  "licenseUrl": "https://github.com/HKUDS/LightRAG/blob/HEAD/LICENSE",
  "licenseClassLabel": "Permissive license",
  "needsConfig": false,
  "gpu": false,
  "firstRun": [
    "Set the LLM and embedding settings for your provider, then open the address to upload documents and query them. The generated API key protects the API."
  ],
  "services": [
    {
      "name": "lightrag",
      "image": "ghcr.io/hkuds/lightrag",
      "tag": "v1.5.7",
      "ports": [
        9621
      ],
      "volumes": [
        "rag -> /app/data/rag_storage",
        "inputs -> /app/data/inputs"
      ]
    }
  ],
  "env": [
    {
      "service": "lightrag",
      "name": "EMBEDDING_BINDING",
      "kind": "preset"
    },
    {
      "service": "lightrag",
      "name": "EMBEDDING_BINDING_API_KEY",
      "kind": "preset"
    },
    {
      "service": "lightrag",
      "name": "EMBEDDING_BINDING_HOST",
      "kind": "preset"
    },
    {
      "service": "lightrag",
      "name": "EMBEDDING_DIM",
      "kind": "preset"
    },
    {
      "service": "lightrag",
      "name": "EMBEDDING_MODEL",
      "kind": "preset"
    },
    {
      "service": "lightrag",
      "name": "HOST",
      "kind": "preset"
    },
    {
      "service": "lightrag",
      "name": "LIGHTRAG_API_KEY",
      "kind": "generated"
    },
    {
      "service": "lightrag",
      "name": "LLM_BINDING",
      "kind": "preset"
    },
    {
      "service": "lightrag",
      "name": "LLM_BINDING_API_KEY",
      "kind": "preset"
    },
    {
      "service": "lightrag",
      "name": "LLM_BINDING_HOST",
      "kind": "preset"
    },
    {
      "service": "lightrag",
      "name": "LLM_MODEL",
      "kind": "preset"
    },
    {
      "service": "lightrag",
      "name": "PORT",
      "kind": "preset"
    }
  ],
  "verifiedTag": null,
  "verifiedArches": [],
  "aliases": [],
  "findings": [],
  "compose": null,
  "deploy": {
    "cli": "levelrail-cli templates install lightrag --name my-lightrag",
    "api": "curl -X POST -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\\n  https://levelrail.example.com/api/v1/service-templates/lightrag/install \\\n  -d '{\n    \"name\": \"my-lightrag\"\n  }'",
    "stack": null,
    "terraform": null,
    "formats": [
      {
        "id": "cli",
        "label": "CLI",
        "lang": "bash",
        "code": "levelrail-cli templates install lightrag --name my-lightrag",
        "note": "Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain lightrag=app.example.com."
      },
      {
        "id": "api",
        "label": "API",
        "lang": "bash",
        "code": "curl -X POST -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\\n  https://levelrail.example.com/api/v1/service-templates/lightrag/install \\\n  -d '{\n    \"name\": \"my-lightrag\"\n  }'",
        "note": "Create a token in the dashboard first. Name, env and domains are the request fields."
      }
    ]
  }
}
