From a748d6bc3b949f102d7ed058cb8f9fd76bb5600b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 31 May 2026 13:31:17 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/studio/backend/main.py b/studio/backend/main.py index 240502283f..73654ddb6f 100644 --- a/studio/backend/main.py +++ b/studio/backend/main.py @@ -383,6 +383,7 @@ async def lifespan(app: FastAPI): # Fast RAG: warm the embedder at startup so the first upload's indexing does # not pay the cold model load. Background thread, like the precache above. if os.environ.get("UNSLOTH_RAG_FAST") == "1": + def _warm_rag_embedder(): try: from core.rag import embeddings