SlackChatLoader#

class langchain_community.chat_loaders.slack.SlackChatLoader(path: 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 (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: str | Path)[source]#

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

Parameters:

path (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.

Returns:

A list of chat sessions.

Return type:

List[ChatSession]

Examples using SlackChatLoader