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.
- {ray_embedding-0.9.6 → ray_embedding-0.9.7}/PKG-INFO +1 -1
- {ray_embedding-0.9.6 → ray_embedding-0.9.7}/ray_embedding/embedding_model.py +2 -1
- {ray_embedding-0.9.6 → ray_embedding-0.9.7}/ray_embedding.egg-info/PKG-INFO +1 -1
- {ray_embedding-0.9.6 → ray_embedding-0.9.7}/setup.cfg +1 -1
- {ray_embedding-0.9.6 → ray_embedding-0.9.7}/README.md +0 -0
- {ray_embedding-0.9.6 → ray_embedding-0.9.7}/pyproject.toml +0 -0
- {ray_embedding-0.9.6 → ray_embedding-0.9.7}/ray_embedding/__init__.py +0 -0
- {ray_embedding-0.9.6 → ray_embedding-0.9.7}/ray_embedding/deploy.py +0 -0
- {ray_embedding-0.9.6 → ray_embedding-0.9.7}/ray_embedding/dto.py +0 -0
- {ray_embedding-0.9.6 → ray_embedding-0.9.7}/ray_embedding.egg-info/SOURCES.txt +0 -0
- {ray_embedding-0.9.6 → ray_embedding-0.9.7}/ray_embedding.egg-info/dependency_links.txt +0 -0
- {ray_embedding-0.9.6 → ray_embedding-0.9.7}/ray_embedding.egg-info/top_level.txt +0 -0
- {ray_embedding-0.9.6 → ray_embedding-0.9.7}/test/test.py +0 -0
|
@@ -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
|
|
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(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|