Generic content input for automatic content-type detection. Used for URL or base64 inputs where the content type is not known upfront. The system will automatically detect the content type (image, video, text, etc.) and route to the appropriate feature extractor. IMPORTANT: Exactly one of url or base64 must be provided (mutually exclusive). Use Cases: - User provides a URL without specifying content type - Client sends base64-encoded content - Generic search where query can be any modality Requirements: - Provide exactly ONE: url OR base64 (mutually exclusive) - System performs automatic content type detection - Supported content types: images, videos, audio, documents Examples: URL input: json {\"url\": \"https://example.com/image.jpg\"} Base64 image input: json {\"base64\": \"data:image/jpeg;base64,/9j/4AAQSkZJRg...\"} Base64 video input: json {\"base64\": \"data:video/mp4;base64,AAAAIGZ0eXBpc2...\"}
| Name | Type | Description | Notes |
|---|---|---|---|
| url | str | OPTIONAL. URL to content for embedding generation. Mutually exclusive with base64 - provide exactly one. System will automatically detect content type (image, video, text, etc.) via HTTP HEAD request and/or file extension analysis. Supported protocols: HTTP, HTTPS, S3 (for Mixpeek-managed buckets). S3 URLs must point to the configured AWS_BUCKET. NOTE: For multimodal embeddings, URL-based inputs may fail if the upstream embedding provider cannot fetch the URL (e.g., geo-restrictions, rate limiting, redirects). Consider using the base64 field instead for more reliable results. | [optional] |
| var_base64 | str | OPTIONAL. Base64-encoded content for embedding generation (RECOMMENDED for multimodal embeddings). Mutually exclusive with url - provide exactly one. Must include data URI scheme (data:mime/type;base64,...) for reliable MIME detection. System will automatically detect content type from data URI prefix. Supported types: images (image/jpeg, image/png), videos (video/mp4), audio, documents. Maximum size: Limited by your namespace configuration. | [optional] |
from mixpeek.models.stage_defs_content_input import StageDefsContentInput
# TODO update the JSON string below
json = "{}"
# create an instance of StageDefsContentInput from a JSON string
stage_defs_content_input_instance = StageDefsContentInput.from_json(json)
# print the JSON string representation of the object
print(StageDefsContentInput.to_json())
# convert the object into a dict
stage_defs_content_input_dict = stage_defs_content_input_instance.to_dict()
# create an instance of StageDefsContentInput from a dict
stage_defs_content_input_from_dict = StageDefsContentInput.from_dict(stage_defs_content_input_dict)