pixano.data.item.item_embedding
ItemEmbedding(**data)
Bases: BaseModel
Embedding type for DatasetItem
Attributes:
Name | Type | Description |
---|---|---|
view_id |
str
|
Embedding view ID |
data |
str
|
Embedding data in base 64 |
Raises ValidationError
if the input data cannot be
validated to form a valid model.
self
is explicitly positional-only to allow self
as a field name.
Source code in pydantic/main.py
from_pyarrow(table, schema)
staticmethod
Create dictionary of ItemEmbedding from PyArrow Table
Parameters:
Name | Type | Description | Default |
---|---|---|---|
table
|
dict[str, Any]
|
PyArrow table |
required |
schema
|
schema
|
PyArrow schema |
required |
Returns:
Type | Description |
---|---|
dict[str, ItemEmbedding]
|
Dictionary of ItemEmbedding |