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.1.0.tar.gz (5.4 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.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for media_tagging_langchain-0.1.0.tar.gz
Algorithm Hash digest
SHA256 572ef63e36232eefee88568c83b7aa95be427e76e4396da89bdf313a23cf5918
MD5 2caef70b4db614c1d652658e44e0ab77
BLAKE2b-256 f7e6b3742706fc89a2b6fec68bf7378602f6c680a04e4e93c62f92def9d3ed3a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for media_tagging_langchain-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0641a7fdf3903b0daf15a13d6c2fb70cd15bfabb58e4ed80683c356358012edb
MD5 a599b0ce434afdb51c5eb778836022ae
BLAKE2b-256 83757b2578bf396ef90ca46a1f8896409f075439a035061d1cb38f17ddb28268

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