ModelRepository#

class langchain_experimental.rl_chain.model_repository.ModelRepository(folder: 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 (str | PathLike) –

  • with_history (bool) –

  • reset (bool) –

__init__(folder: str | PathLike, with_history: bool = True, reset: bool = False)[source]#
Parameters:
  • folder (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