Media Tagging with Langchain
Makes it possible to use media_tagging library with Langchain supported multimodal LLMs.
Installation
pip install media-tagging-langchain
Usage
For a general purpose usage please refer to
media_taggingusage documentation.
media-tagger ACTION MEDIA_PATHs \
--media-type <MEDIA_TYPE> \
--tagger langchain \
--db-uri=<CONNECTION_STRING> \
--writer <WRITER_TYPE> \
--output <OUTPUT_FILE_NAME>
where:
ACTION- eithertagordescribe.MEDIA_PATHs- names of files for tagging (can be urls) separated by spaces.
Instead of reading
MEDIA_PATHsas positional arguments you can read them from a file using
--input FILENAME.CSVargument. Use--input.column_name=NAME_OF_COLUMNto specify column name in the file.
<MEDIA_TYPE>- type of media (IMAGE, TEXT).<CONNECTION_STRING>- Optional connection string to the database with tagging results (i.e.sqlite:///tagging.db). If this parameter is set make sure that DB exists.<WRITER_TYPE>- writer identifier (check available options at garf-io library).<OUTPUT_FILE_NAME>- name of the file to store results of tagging (by defaulttagging_results).
Documentation
Explore full documentation on working with Langchain media tagging.
Metadata
Release files for media-tagging-langchain 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| media_tagging_langchain-0.3.0.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| media_tagging_langchain-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.2 kB
Release files / media_tagging_langchain-0.3.0.tar.gz
| Download URL | media_tagging_langchain-0.3.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc9479b779095d6cdb292c0c3e76d759d53261b13d441374f65b1491679a2b37
|
|
BLAKE2b-256 checksum How to use checksums |
71decbe63d368dea6131f430bf193fe6271c7ccbee805d29e2938d51c78a8104
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.4
|
Release files / media_tagging_langchain-0.3.0-py3-none-any.whl
| Download URL | media_tagging_langchain-0.3.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b2d8dd89bb0496311357ebb923d81700525665460b40747885956feb6c134165
|
|
BLAKE2b-256 checksum How to use checksums |
21d084005f9649424ff25d654ce8293d885b82256a062aebc23625073187fc60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.4
|