langchain_community.chat_loaders.slack.SlackChatLoader¶

class langchain_community.chat_loaders.slack.SlackChatLoader(path: Union[str, Path])[source]¶

Load Slack conversations from a dump zip file.

Initialize the chat loader with the path to the exported Slack dump zip file.

Parameters

path (Union[str, Path]) – Path to the exported Slack dump zip file.

Methods

__init__(path)

Initialize the chat loader with the path to the exported Slack dump zip file.

lazy_load()

Lazy load the chat sessions from the Slack dump file and yield them in the required format.

load()

Eagerly load the chat sessions into memory.

__init__(path: Union[str, Path])[source]¶

Initialize the chat loader with the path to the exported Slack dump zip file.

Parameters

path (Union[str, Path]) – Path to the exported Slack dump zip file.

lazy_load() Iterator[ChatSession][source]¶

Lazy load the chat sessions from the Slack dump file and yield them in the required format.

Returns

Iterator of chat sessions containing messages.

Return type

Iterator[ChatSession]

load() List[ChatSession]¶

Eagerly load the chat sessions into memory.

Return type

List[ChatSession]

Examples using SlackChatLoader¶