(self, text, model_type, refreshModel=False)
| 474 | return text |
| 475 | |
| 476 | def transEmbedding(self, text, model_type, refreshModel=False): |
| 477 | if refreshModel: |
| 478 | self.embedding_model = self.getEmbeddingModel(model_type=model_type) |
| 479 | return self.embedding_model([text]) |
| 480 | |
| 481 | def getEmbeddingModel(self, model_type, OPENAI_API_KEY=None, OPENAI_API_BASE_PATH=None, Cohere_API_KEY=None, |
| 482 | Sentence_Transformersmodel_name=None, Cohere_model_name=None, Instructor_model_name=None, |
nothing calls this directly
no test coverage detected