langchain_experimental.rl_chain.model_repository.ModelRepository

class langchain_experimental.rl_chain.model_repository.ModelRepository(folder: Union[str, PathLike], with_history: bool = True, reset: bool = False)[源代码]

模型存储库。

方法

__init__(folder[, with_history, reset])

get_tag()

has_history()

load(commandline)

save(workspace)

参数
  • folder (Union[str, PathLike]) –

  • with_history (bool) –

  • reset (bool) –

__init__(folder: Union[str, PathLike], with_history: bool = True, reset: bool = False)[源代码]
参数
  • folder (Union[str, PathLike]) –

  • with_history (bool) –

  • reset (bool) –

get_tag() str[源代码]
返回类型

str

has_history() bool[源码]
返回类型

bool

load(commandline: List[str]) vw.Workspace[源码]
参数

commandline (列表[字符串]) –

返回类型

vw.Workspace

save(workspace: vw.Workspace) None[源码]
参数

workspace (vw.Workspace) –

返回类型

None