From e0d6674ff6f19498f6825f2ff2c38e8091674fd2 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Fri, 12 Jun 2026 02:54:26 -0700 Subject: [PATCH] Add RAG runtime deps to no-torch-runtime.txt (#6236) The --local / GGUF-only install resolves its Python deps from no-torch-runtime.txt, installed with --no-deps. That file was missing the RAG group that studio.txt declares (sqlite-vec, pymupdf, python-docx), so a fresh `unsloth studio` came up with RAG disabled: rag_db.py cannot import sqlite_vec and logs "RAG unavailable: sqlite-vec extension could not be loaded", and the knowledge-base routes return 503. python-docx was also absent, so DOCX ingestion failed. Add the three RAG store and document-parsing deps with the same pins as studio.txt so knowledge bases work out of the box on the no-torch path. sentence-transformers (dense embeddings) was already present. --- studio/backend/requirements/no-torch-runtime.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/studio/backend/requirements/no-torch-runtime.txt b/studio/backend/requirements/no-torch-runtime.txt index 85294114b1..6efe91d448 100644 --- a/studio/backend/requirements/no-torch-runtime.txt +++ b/studio/backend/requirements/no-torch-runtime.txt @@ -68,3 +68,9 @@ trl>=0.18.2,!=0.19.0,<=0.24.0 sentence-transformers cut_cross_entropy pillow + +# RAG store + document parsing, mirroring studio.txt. Pinned here because +# this file installs --no-deps; without them Studio runs with RAG disabled. +sqlite-vec==0.1.9 +pymupdf==1.27.2.3 +python-docx==1.2.0