模型仓库#

class langchain_experimental.rl_chain.model_repository.ModelRepository(folder: str | PathLike, with_history: bool = True, reset: bool = False)[来源]#

模型仓库。

方法

__init__(folder[, with_history, reset])

get_tag()

has_history()

load(commandline)

save(workspace)

Parameters:
  • folder (str | PathLike)

  • with_history (bool)

  • reset (bool)

__init__(folder: str | PathLike, with_history: bool = True, reset: bool = False)[来源]#
Parameters:
  • folder (str | PathLike)

  • with_history (bool)

  • reset (bool)

get_tag() str[source]#
Return type:

字符串

has_history() bool[来源]#
Return type:

布尔

load(commandline: List[str]) vw.Workspace[来源]#
Parameters:

命令行 (列表[字符串])

Return type:

vw.工作区

save(workspace: vw.Workspace) None[来源]#
Parameters:

工作区 (vw.Workspace)

Return type: