diff --git a/lightrag/api/lightrag_server.py b/lightrag/api/lightrag_server.py index f03959aa..87c607c8 100644 --- a/lightrag/api/lightrag_server.py +++ b/lightrag/api/lightrag_server.py @@ -1510,7 +1510,11 @@ def create_app(args): return app - + # Serve the static files + static_dir = Path(__file__).parent / "static" + static_dir.mkdir(exist_ok=True) + app.mount("/", StaticFiles(directory=static_dir, html=True), name="static") + def main(): args = parse_args() import uvicorn diff --git a/lightrag/api/static/index.html b/lightrag/api/static/index.html new file mode 100644 index 00000000..8c352ea6 --- /dev/null +++ b/lightrag/api/static/index.html @@ -0,0 +1,106 @@ + + + + + + RAG WebUI + + + +
+

RAG WebUI

+ + +
+

Upload Files

+
+ + +
+
+
+ + +
+

Query

+
+ + +
+
+
+
+ + + + diff --git a/lightrag/api/static/keep.txt b/lightrag/api/static/keep.txt new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/lightrag/api/static/keep.txt @@ -0,0 +1 @@ +