Progress Utilities

Utility functions for MemVid.

class langchain_memvid.utils.progress.ProgressDisplay(show_progress=True)[source]

Bases: object

Wrapper for tqdm progress bar that can be disabled.

Parameters:

show_progress (bool)

__init__(show_progress=True)[source]

Initialize progress display.

Parameters:

show_progress (bool) – Whether to show progress bars

progress(**kwargs)[source]

Context manager for manual progress bar updates.

Parameters:

**kwargs (Any) – Arguments to pass to tqdm

Yields:

tqdm instance or dummy progress bar

tqdm(iterable=None, **kwargs)[source]

Wrapper for tqdm that respects show_progress setting.

Parameters:
  • iterable (Optional[Iterable[TypeVar(T)]]) – Iterable to wrap with progress bar

  • **kwargs (Any) – Additional arguments to pass to tqdm

Return type:

Iterable[TypeVar(T)]

Returns:

Iterable with or without progress bar