For the complete documentation index, see llms.txt. This page is also available as Markdown.

Data Endpoint

Datasets, VLM inference, and batch evaluation

The Data API manages datasets and runs VLM inference and evaluation over them.

import asyncio
from eyepop import EyePopSdk

async def main():
    async with EyePopSdk.dataEndpoint(is_async=True) as endpoint:
        datasets = await endpoint.list_datasets()
        print(datasets)

asyncio.run(main())

Some Data API calls need an account: set EYEPOP_ACCOUNT_ID. See Configuration.

VLM inference on one asset

import asyncio

from eyepop.data.data_types import InferRequest, TranscodeMode

async def main():
    async with EyePopSdk.dataEndpoint(is_async=True) as endpoint:
        job = await endpoint.infer_asset(
            asset_uuid="your-asset-uuid",
            infer_request=InferRequest(text_prompt="Describe this image."),
            transcode_mode=TranscodeMode.image_cover_1024,
        )
        while result := await job.predict():
            print(result)

asyncio.run(main())

Batch dataset evaluation

Next steps

Last updated