langchain_community.document_loaders.slack_directory
.SlackDirectoryLoader¶
- class langchain_community.document_loaders.slack_directory.SlackDirectoryLoader(zip_path: str, workspace_url: Optional[str] = None)[source]¶
Load from a Slack directory dump.
Initialize the SlackDirectoryLoader.
- Parameters
zip_path (str) – The path to the Slack directory dump zip file.
workspace_url (Optional[str]) – The Slack workspace URL. Including the URL will turn sources into links. Defaults to None.
Methods
__init__
(zip_path[, workspace_url])Initialize the SlackDirectoryLoader.
A lazy loader for Documents.
load
()Load and return documents from the Slack directory dump.
load_and_split
([text_splitter])Load Documents and split into chunks.
- __init__(zip_path: str, workspace_url: Optional[str] = None)[source]¶
Initialize the SlackDirectoryLoader.
- Parameters
zip_path (str) – The path to the Slack directory dump zip file.
workspace_url (Optional[str]) – The Slack workspace URL. Including the URL will turn sources into links. Defaults to None.
- load_and_split(text_splitter: Optional[TextSplitter] = None) List[Document] ¶
Load Documents and split into chunks. Chunks are returned as Documents.
- Parameters
text_splitter – TextSplitter instance to use for splitting documents. Defaults to RecursiveCharacterTextSplitter.
- Returns
List of Documents.