OpenAIEmbedding
- model_type (EmbeddingModelType): The model type to be used for text embeddings. (default: :obj:
TEXT_EMBEDDING_3_SMALL) - url (Optional[str]): The url to the OpenAI service. (default: :obj:
None) - api_key (Optional[str]): The API key for authenticating with the OpenAI service. (default: :obj:
None) - dimensions (Union[int, NotGiven]): The text embedding output dimensions. (default: :obj:
NOT_GIVEN)
init
embed_list
- objs (list[str]): The texts for which to generate the embeddings. **kwargs (Any): Extra kwargs passed to the embedding API.