pixano_inference.schemas.embedding
Embedding I/O types.
A single capability that embeds either an image or text into a shared vector space (CLIP-style), so image and text embeddings are directly comparable (text-to-image search).
EmbeddingInput(**data)
Bases: _BaseModel
Input for embedding computation.
Exactly one of image or text must be provided. Either may be a single value or a
list (batch). Images are passed by value (path/URL/base64/bytes) and resolved through the
media security policy.
Attributes:
| Name | Type | Description |
|---|---|---|
image |
list[str | Path | bytes] | str | Path | bytes | None
|
Image(s) to embed (path, URL, base64, or raw bytes). |
text |
list[str] | str | None
|
Text(s) to embed. |
normalize |
bool
|
Whether to L2-normalize the output vectors (default True). |
Source code in pydantic/main.py
EmbeddingOutput(**data)
Bases: _BaseModel
Output for embedding computation.
Attributes:
| Name | Type | Description |
|---|---|---|
embeddings |
NDArrayFloat
|
Embedding vectors as a |
dim |
int
|
Dimensionality of each embedding vector. |