1
0

Remove unused deps from poetry build, speed test suite to ~16s (#130)

This commit is contained in:
Alexander Whitestone
2026-03-05 18:07:59 -05:00
committed by GitHub
parent f2dacf4ee0
commit e8f1dea3ec
8 changed files with 29 additions and 22 deletions

View File

@@ -37,6 +37,10 @@ def _get_embedding_model():
"""Lazy-load embedding model."""
global EMBEDDING_MODEL
if EMBEDDING_MODEL is None:
import os
if os.environ.get("TIMMY_SKIP_EMBEDDINGS") == "1":
EMBEDDING_MODEL = False
return EMBEDDING_MODEL
try:
from sentence_transformers import SentenceTransformer
EMBEDDING_MODEL = SentenceTransformer('all-MiniLM-L6-v2')