Format code with ruff

This commit is contained in:
Andy Lee
2025-12-24 00:23:25 +00:00
parent b754474c44
commit a0e53ef8f1
4 changed files with 68 additions and 8 deletions

View File

@@ -98,7 +98,9 @@ def test_backend_options():
with tempfile.TemporaryDirectory() as temp_dir:
# Use smaller model in CI to avoid memory issues
is_ci = os.environ.get("CI") == "true"
embedding_model = "sentence-transformers/all-MiniLM-L6-v2" if is_ci else "facebook/contriever"
embedding_model = (
"sentence-transformers/all-MiniLM-L6-v2" if is_ci else "facebook/contriever"
)
dimensions = 384 if is_ci else None
# Test HNSW backend (as shown in README)