EmbeddingModel
Properties
Name |
Type |
Description |
Notes |
---|---|---|---|
id |
str |
The model identifier. |
|
display_name |
str |
The model name. |
|
description |
str |
The model description. |
|
languages |
List[str] |
Languages supported by the model. |
Example
from h2ogpte.rest_sync.models.embedding_model import EmbeddingModel
# TODO update the JSON string below
json = "{}"
# create an instance of EmbeddingModel from a JSON string
embedding_model_instance = EmbeddingModel.from_json(json)
# print the JSON string representation of the object
print(EmbeddingModel.to_json())
# convert the object into a dict
embedding_model_dict = embedding_model_instance.to_dict()
# create an instance of EmbeddingModel from a dict
embedding_model_from_dict = EmbeddingModel.from_dict(embedding_model_dict)