[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
e0ef14c9fa
commit
a748d6bc3b
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue