ray-embedding 0.9.6__tar.gz → 0.9.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ray-embedding might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ray-embedding
3
- Version: 0.9.6
3
+ Version: 0.9.7
4
4
  Summary: Deploy SentenceTransformers embedding models to a ray cluster
5
5
  Author: Crispin Almodovar
6
6
  Author-email: crispin.almodovar@docorto.ai
@@ -69,6 +69,7 @@ class EmbeddingModel:
69
69
  assert request.model == self.served_model_name, (
70
70
  f"Model '{request.model}' is not supported. Use '{self.served_model_name}' instead."
71
71
  )
72
+ request.dimensions = request.dimensions or self.matryoshka_dim
72
73
  return await self.__create_embeddings_batch(request)
73
74
  except Exception as e:
74
75
  self.logger.error(e)
@@ -83,7 +84,7 @@ class EmbeddingModel:
83
84
  if isinstance(request.input, str):
84
85
  request.input = [request.input]
85
86
  inputs.extend(request.input)
86
- truncate_dims.append(request.dimensions or self.matryoshka_dim)
87
+ truncate_dims.append(request.dimensions)
87
88
 
88
89
  # Compute embeddings for the batch of text inputs
89
90
  embeddings = self.embedding_model.encode(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ray-embedding
3
- Version: 0.9.6
3
+ Version: 0.9.7
4
4
  Summary: Deploy SentenceTransformers embedding models to a ray cluster
5
5
  Author: Crispin Almodovar
6
6
  Author-email: crispin.almodovar@docorto.ai
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = ray-embedding
3
- version = 0.9.6
3
+ version = 0.9.7
4
4
  author = Crispin Almodovar
5
5
  author_email = crispin.almodovar@docorto.ai
6
6
  description = Deploy SentenceTransformers embedding models to a ray cluster
File without changes