Skip to main content

Langchain plugin for media-tagging library

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

media_tagging_langchain-0.3.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

media_tagging_langchain-0.3.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file media_tagging_langchain-0.3.0.tar.gz.

File metadata

File hashes

Hashes for media_tagging_langchain-0.3.0.tar.gz
Algorithm Hash digest
SHA256 dc9479b779095d6cdb292c0c3e76d759d53261b13d441374f65b1491679a2b37
MD5 e67f8e308b09aa0c752d335bdc25f3f6
BLAKE2b-256 71decbe63d368dea6131f430bf193fe6271c7ccbee805d29e2938d51c78a8104

See more details on using hashes here.

File details

Details for the file media_tagging_langchain-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for media_tagging_langchain-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2d8dd89bb0496311357ebb923d81700525665460b40747885956feb6c134165
MD5 d8e810fbf789889d70a85f9f491b2d45
BLAKE2b-256 21d084005f9649424ff25d654ce8293d885b82256a062aebc23625073187fc60

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page