Garf implementation for media tagger
Project description
garf for Media Tagging
garf-media-tagging simplifies interaction with media_tagging library via
SQL queries and can be used with garf framework.
Prerequisites
Installation
pip install garf-media-tagging
Usage
Run via CLI
Install
garf-executorspackage to run queries via CLI (pip install garf-executors).
garf <PATH_TO_QUERIES> --source media-tagging \
--output <OUTPUT_TYPE> \
--source.endpoint=MEDIA_TAGGING_API_ENDPOINT_URL
where:
PATH_TO_QUERIES- local or remove files containing queriesoutput- output supported bygarf-iolibrary.SOURCE_PARAMETER=VALUE- key-value pairs to refine fetching, check available source parameters.
Available source parameters
| name | values | comments |
|---|---|---|
endpoint |
http endpoint when media-tagging API is running | |
db-uri |
Optional connection string to DB where tagging results can be found |
Queries for Media Tagging API
SELECT
media_url,
content.tags[].name AS tags
FROM tag
WHERE
media_type = 'image'
AND tagger_type = 'gemini'
AND media_path IN ({media})
Resources
tag- identifies tags (pairname: score) uniquely defining media.description- custom description of media; usually fine-tuned viacustom_promptparameter.
Filters
media_type- Required, one of: image, youtube_video, webpage, text, video.tagger_type- Tagger used to identify tags / descriptions.media_path- location of media.tagging_options- optional parameters to finetune tagging.n_tags- number of tags to return.tags- custom tags to find in the media.custom_prompt- prompt to send to LLM.
Fields
You can extract one of the following elements from reach row of API response.
media_typemedia_urlidentifierprocessed_atcontenttextfor description{name, score}for tag
hash
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file garf_media_tagging-0.0.2.tar.gz.
File metadata
- Download URL: garf_media_tagging-0.0.2.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
850226058f7165a7bc93e305e77083c99e495e93e0515818d89bdb694133b8d5
|
|
| MD5 |
14696461b711f06ad6de3a9bd7883328
|
|
| BLAKE2b-256 |
cef19ec636b9bc94e5f0f5e4167ec7e69a7ea572b2e1ca51b75779bed41f78b4
|
File details
Details for the file garf_media_tagging-0.0.2-py3-none-any.whl.
File metadata
- Download URL: garf_media_tagging-0.0.2-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f46323b7d8756dce97c9e9b79e30b4179588011124ca8e57f834ace45531e3c
|
|
| MD5 |
2bca1e5208447ac0e991f478225bf195
|
|
| BLAKE2b-256 |
c3c821375486dc8b1dc27c4012697ef3a6c919ac8f14d4413829e71a83b1fc4e
|