Skip to main content

Langchain plugin for media-tagging library

Project description

Langchain plugin for media-tagging library

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 \
  --tagger.llm_class_name=<FULLY_QUALIFIED_CLASS_NAME> \
  --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.
  • <MEDIA_TYPE> - type of media (YOUTUBE_VIDEO, VIDEO, IMAGE).
  • <FULLY_QUALIFIED_CLASS_NAME> - fully path to the LLM class (i.e. langchain_google_genai.ChatGoogleGenerativeAI). Corresponding library should be installed before calling the media-tagger.
  • <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).

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.2.0.tar.gz (5.6 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.2.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for media_tagging_langchain-0.2.0.tar.gz
Algorithm Hash digest
SHA256 058e11f5181c6f7715c710809ef0a35001454d6757cb221fb3c51f358f4c1dd5
MD5 440b57c4726bfb049ac2a69d8603d6df
BLAKE2b-256 26275a4473a37f37f36f946d4a06fc837ca8ef66845578521179b4e9468b3ff0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for media_tagging_langchain-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52125b04a461ce2549de9a6f890f619df4280355f93b475819f487790099d9b8
MD5 3592963be5fcda8ae12e269b647e2287
BLAKE2b-256 cfb9597d924d6aaa10969440f9179a8d9db4b1ba5477ba28d70090b228252a01

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