forked from phoenix-oss/llama-stack-mirror
Kill noise from test output
This commit is contained in:
parent
bf38d0aba0
commit
45ffe87d7c
3 changed files with 4 additions and 11 deletions
|
@ -35,7 +35,9 @@ class SentenceTransformerEmbeddingMixin:
|
|||
) -> EmbeddingsResponse:
|
||||
model = await self.model_store.get_model(model_id)
|
||||
embedding_model = self._load_sentence_transformer_model(model.provider_resource_id)
|
||||
embeddings = embedding_model.encode([interleaved_content_as_str(content) for content in contents])
|
||||
embeddings = embedding_model.encode(
|
||||
[interleaved_content_as_str(content) for content in contents], show_progress_bar=False
|
||||
)
|
||||
return EmbeddingsResponse(embeddings=embeddings)
|
||||
|
||||
def _load_sentence_transformer_model(self, model: str) -> "SentenceTransformer":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue