langchain.chat_loaders.slack.SlackChatLoader¶
class langchain.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 – 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 – 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.
load() → List[ChatSession]¶
Eagerly load the chat sessions into memory.
Examples using SlackChatLoader¶
Slack