跳到内容

多模态

基类: QueryComponent

基础 LLM 组件。

参数

名称 类型 描述 默认值
multi_modal_llm MultiModalLLM

LLM

必需
流式 bool

流式传输模式

False
源代码位于 llama-index-core/llama_index/core/multi_modal_llms/base.py
187
188
189
190
191
192
193
194
195
class BaseMultiModalComponent(QueryComponent):
    """Base LLM component."""

    model_config = ConfigDict(arbitrary_types_allowed=True)
    multi_modal_llm: MultiModalLLM = Field(..., description="LLM")
    streaming: bool = Field(default=False, description="Streaming mode")

    def set_callback_manager(self, callback_manager: Any) -> None:
        """Set callback manager."""

set_callback_manager #

set_callback_manager(callback_manager: Any) -> None

设置回调管理器。

源代码位于 llama-index-core/llama_index/core/multi_modal_llms/base.py
194
195
def set_callback_manager(self, callback_manager: Any) -> None:
    """Set callback manager."""