Source: http://www.poma-ai.com/docs/sdk/reference/models

# POMA SDK Data Models Reference

```python
from poma import PomaChunk, PomaChunkSet, PomaResult
```

## `PomaResult`

`PomaResult` contains the full unpacked SDK result.

| Attribute | Type | Notes |
| --- | --- | --- |
| `chunks` | `list[PomaChunk]` | Structured chunks |
| `chunksets` | `list[PomaChunkSet]` | Structure-aware retrieval units |
| `images` | `dict[str, str]` | Extracted images as base64 data URIs |

Methods:

- `to_dict() -> dict[str, Any]`
- `from_dict(data: dict[str, Any]) -> PomaResult`

## `PomaChunk`

| Attribute | Type |
| --- | --- |
| `chunk_index` | `int` |
| `content` | `str` |
| `depth` | `int` |
| `file_id` | `str | None` |
| `tag` | `str | None` |
| `code` | `str | None` |

Methods:

- `to_dict() -> dict[str, Any]`
- `from_dict(data: dict[str, Any]) -> PomaChunk`

`tag` is deprecated. Use `file_id`.

## `PomaChunkSet`

| Attribute | Type |
| --- | --- |
| `chunkset_index` | `int` |
| `chunks` | `list[int]` |
| `to_embed` | `str` |
| `file_id` | `str | None` |
| `tag` | `str | None` |

Methods:

- `to_dict() -> dict[str, Any]`
- `from_dict(data: dict[str, Any]) -> PomaChunkSet`

`tag` is deprecated. Use `file_id`.