ray-embedding 0.9.3__tar.gz → 0.9.5__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.
- {ray_embedding-0.9.3 → ray_embedding-0.9.5}/PKG-INFO +1 -1
- {ray_embedding-0.9.3 → ray_embedding-0.9.5}/ray_embedding/embedding_model.py +1 -1
- {ray_embedding-0.9.3 → ray_embedding-0.9.5}/ray_embedding.egg-info/PKG-INFO +1 -1
- {ray_embedding-0.9.3 → ray_embedding-0.9.5}/setup.cfg +1 -1
- {ray_embedding-0.9.3 → ray_embedding-0.9.5}/README.md +0 -0
- {ray_embedding-0.9.3 → ray_embedding-0.9.5}/pyproject.toml +0 -0
- {ray_embedding-0.9.3 → ray_embedding-0.9.5}/ray_embedding/__init__.py +0 -0
- {ray_embedding-0.9.3 → ray_embedding-0.9.5}/ray_embedding/deploy.py +0 -0
- {ray_embedding-0.9.3 → ray_embedding-0.9.5}/ray_embedding/dto.py +0 -0
- {ray_embedding-0.9.3 → ray_embedding-0.9.5}/ray_embedding.egg-info/SOURCES.txt +0 -0
- {ray_embedding-0.9.3 → ray_embedding-0.9.5}/ray_embedding.egg-info/dependency_links.txt +0 -0
- {ray_embedding-0.9.3 → ray_embedding-0.9.5}/ray_embedding.egg-info/top_level.txt +0 -0
- {ray_embedding-0.9.3 → ray_embedding-0.9.5}/test/test.py +0 -0
|
@@ -71,6 +71,7 @@ class EmbeddingModel:
|
|
|
71
71
|
)
|
|
72
72
|
return await self.create_embeddings_batch(request)
|
|
73
73
|
except Exception as e:
|
|
74
|
+
self.logger.error(e)
|
|
74
75
|
raise HTTPException(status_code=500, detail=str(e))
|
|
75
76
|
|
|
76
77
|
@serve.batch(max_batch_size=8, batch_wait_timeout_s=0.25)
|
|
@@ -96,7 +97,6 @@ class EmbeddingModel:
|
|
|
96
97
|
num_inputs = len(request.input)
|
|
97
98
|
batch_embeddings = embeddings[ix: ix + num_inputs]
|
|
98
99
|
ix += num_inputs
|
|
99
|
-
|
|
100
100
|
if truncate_dim is not None:
|
|
101
101
|
batch_embeddings = batch_embeddings[:, :truncate_dim]
|
|
102
102
|
batch_embeddings = batch_embeddings / torch.norm(batch_embeddings, dim=1, keepdim=True)
|
|
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
|