langchain_experimental.video_captioning.services.caption_service.CaptionProcessor

class langchain_experimental.video_captioning.services.caption_service.CaptionProcessor(llm: BaseLanguageModel, verbose: bool = True, similarity_threshold: int = 80, use_unclustered_models: bool = False)[source]

方法

__init__(llm[, verbose, ...])

process(video_models[, run_manager])

参数
  • llm (BaseLanguageModel) –

  • verbose (bool) –

  • similarity_threshold (int) –

  • use_unclustered_models (bool) –

__init__(llm: BaseLanguageModel, verbose: bool = True, similarity_threshold: int = 80, use_unclustered_models: bool = False) None[source]
参数
  • llm (BaseLanguageModel) –

  • verbose (bool) –

  • similarity_threshold (int) –

  • use_unclustered_models (bool) –

返回类型

None

process(video_models: List[VideoModel], run_manager: Optional[CallbackManagerForChainRun] = None) List[VideoModel][source]
参数
返回类型

列表<VideoModel