Esempio n. 1
0
 def test_should_resolve_embedding_alias(
         self, embedding_manager: EmbeddingManager):
     embedding_manager.set_embedding_aliases(
         {EMBEDDING_ALIAS_1: EMBEDDING_NAME_1})
     assert embedding_manager.resolve_alias(
         EMBEDDING_ALIAS_1) == EMBEDDING_NAME_1
Esempio n. 2
0
 def test_should_return_passed_in_embedding_name_by_default(
         self, embedding_manager: EmbeddingManager):
     assert embedding_manager.resolve_alias(
         EMBEDDING_NAME_1) == EMBEDDING_NAME_1