Toggle Menu
Prev Up Next

# `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)

  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)
    Parameters

      - folder (Union[str, PathLike]) –

      - with_history (bool) –

      - reset (bool) –

  get_tag() → str
    Return type

      str

  has_history() → bool
    Return type

      bool

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

      commandline (List[str]) –

    Return type

      vw.Workspace

  save(workspace: vw.Workspace) → None
    Parameters

      workspace (vw.Workspace) –

    Return type

      None