create_embedding
Function
Constructs an embedding instance by calling the static method create of the TextEmbedding, ImageEmbedding, or TEIEmbedding class.
Prototype
@classmethod def create_embedding(**kwargs):
Parameters
Parameter |
Data Type |
Required/Optional |
Description |
|---|---|---|---|
embedding_type |
String |
Required |
This parameter is used in kwargs to specify the embedding type. The value is passed through the keyword parameter. Possible values are:
|
**kwargs |
Any |
Optional |
Except embedding_type, other parameters are embedding construction parameters. This parameter calls the static method create of the corresponding class to return an instance.
|
Return Value
Data Type |
Description |
|---|---|
langchain_core.embeddings.Embeddings |
Embeddings instance object. |
Parent topic: EmbeddingFactory