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)[source]

Model Repository.

Methods

__init__(folder[, with_history, reset])

get_tag()

has_history()

load(commandline)

save(workspace)

Parameters
  • folder (Union[str, PathLike]) –

  • with_history (bool) –

  • reset (bool) –

__init__(folder: Union[str, PathLike], with_history: bool = True, reset: bool = False)[source]
Parameters
  • folder (Union[str, PathLike]) –

  • with_history (bool) –

  • reset (bool) –

get_tag() str[source]
Return type

str

has_history() bool[source]
Return type

bool

load(commandline: List[str]) vw.Workspace[source]
Parameters

commandline (List[str]) –

Return type

vw.Workspace

save(workspace: vw.Workspace) None[source]
Parameters

workspace (vw.Workspace) –

Return type

None