Langchain plugin for media-tagging library
Project description
Langchain plugin for media-tagging library
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 \
--tagger.llm_class_name=<FULLY_QUALIFIED_CLASS_NAME> \
--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.<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 themedia-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 defaulttagging_results).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file media_tagging_langchain-0.1.0.tar.gz.
File metadata
- Download URL: media_tagging_langchain-0.1.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
572ef63e36232eefee88568c83b7aa95be427e76e4396da89bdf313a23cf5918
|
|
| MD5 |
2caef70b4db614c1d652658e44e0ab77
|
|
| BLAKE2b-256 |
f7e6b3742706fc89a2b6fec68bf7378602f6c680a04e4e93c62f92def9d3ed3a
|
File details
Details for the file media_tagging_langchain-0.1.0-py3-none-any.whl.
File metadata
- Download URL: media_tagging_langchain-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0641a7fdf3903b0daf15a13d6c2fb70cd15bfabb58e4ed80683c356358012edb
|
|
| MD5 |
a599b0ce434afdb51c5eb778836022ae
|
|
| BLAKE2b-256 |
83757b2578bf396ef90ca46a1f8896409f075439a035061d1cb38f17ddb28268
|