api-server
Operate the LightRAG API server, WebUI, route families, auth, server configuration, setup wizard outputs, and deployment troubleshooting without touching embedded-core, storage, or provider internals.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- api-server
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Operate the LightRAG API server, WebUI, route families, auth, server configuration, setup wizard outputs, and deployment troubleshooting without touching embedded-core, storage, or provider internals.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/api-routes.md8.9 KB
- 参考文档references/configuration.md7.9 KB
- 参考文档references/troubleshooting.md9.7 KB
- 参考文档references/webui-and-deployment.md5.9 KB
- 脚本scripts/check_api_entrypoints.py7.1 KB
03 SKILL.md 正文
LightRAG API Server And WebUI
Use this sub-skill when a task involves running lightrag-server or lightrag-gunicorn, configuring server .env settings, authenticating API/WebUI clients, using REST or Ollama-compatible routes, building the WebUI, or debugging API deployment behavior.
Route By Task
- Configure server startup,
.env, auth, path prefixes, CORS, setup-wizard outputs, or console scripts with configuration. - Use REST route families, request patterns, auth headers, streaming behavior, and graph/document/query route boundaries with api-routes.
- Build or serve the React WebUI, run frontend checks, use Docker stacks, or reason about packaged WebUI assets with webui-and-deployment.
- Diagnose guest JWT warnings, missing API extras, auth failures, upload/scan/delete conflicts, path-prefix issues, CORS, and WebUI build failures with troubleshooting.
- Run
python scripts/check_api_entrypoints.pyfrom this sub-skill directory for a safe installed-package import and console-entrypoint check that does not start the server.
Boundaries
- This sub-skill owns API server entry points, FastAPI route families, WebUI packaging/dev/build/test commands, auth/JWT/password hashing,
env.example-style server settings,config.inicompatibility notes, Docker/offline deployment notes, and setup-wizard output semantics. - For embedded Python
LightRAG,QueryParam, insert/query lifecycle, custom KG insertion, or direct async library use, route to../core-rag/SKILL.md. - For upload/scan/delete ingestion concurrency internals, parser routing semantics, chunking strategies, multimodal extraction, and document-status state transitions, route to
../document-pipeline/SKILL.md. - For storage class selection, database service requirements, migrations, workspace isolation details, vector rebuilds, and destructive backend operations, route to
../storage-backends/SKILL.md. - For LLM, embedding, reranker, VLM provider bindings, credentials, role-specific model routing, and provider-specific options, route to
../llm-providers/SKILL.md.
Non-Negotiables
- Keep
.envin the server startup directory; OS environment variables override.env, so restart the process after changing configuration. - Do not expose
AUTH_ACCOUNTSwithout a non-defaultTOKEN_SECRET; uselightrag-hash-passwordfor bcrypt values. - Treat no-account guest mode as development-only unless another protection layer is intentionally responsible for access control.
- Do not run
lightrag-serverorlightrag-gunicornas a validation check unless the task explicitly allows starting a long-running service. - Do not make runtime guidance depend on source-checkout scripts, repository docs, or local paths; use installed console scripts and self-contained command patterns.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).