Skip to main content

Media Tagging with Langchain

PyPI

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_tagging usage 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 - either tag or describe.
  • MEDIA_PATHs - names of files for tagging (can be urls) separated by spaces.

Instead of reading MEDIA_PATHs as positional arguments you can read them from a file using
--input FILENAME.CSV argument. Use --input.column_name=NAME_OF_COLUMN to 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 default tagging_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)

Source distribution for media-tagging-langchain 0.3.0
File Size Uploaded Provenance Actions
media_tagging_langchain-0.3.0.tar.gz 5.3 kB Without provenance Details for media_tagging_langchain-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for media-tagging-langchain 0.3.0
File Interpreter ABI Platform Actions
media_tagging_langchain-0.3.0-py3-none-any.whl Python 3 none any Details for media_tagging_langchain-0.3.0-py3-none-any.whl

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

Security for media-tagging-langchain 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page