A sentence embedding operator generates one embedding vector in ndarray for each input text.
A sentence embedding operator generates one embedding vector in ndarray for each input text.
The embedding represents the semantic information of the whole input text as one vector.
The embedding represents the semantic information of the whole input text as one vector.
This operator is implemented with embedding models from [OpenAI](https://platform.openai.com/docs/guides/embeddings).
This operator is implemented with embedding models from [OpenAI](https://platform.openai.com/docs/guides/embeddings).
Please note you need an [OpenAI API key](https://platform.openai.com/account/api-keys) to access OpenAI.
This operator is designed specifically for Azure OpenAI, get more information from [link](https://learn.microsoft.com/en-us/azure/ai-services/openai/tutorials/embeddings?tabs=command-line)
<br/>
<br/>
@ -25,11 +25,9 @@ from towhee import pipe, ops, DataCollection