Skip to main content
Slack은 인스턴트 메시징 프로그램입니다.
이 노트북은 Slack 내보내기에서 생성된 Zipfile에서 문서를 로드하는 방법을 다룹니다. Slack 내보내기를 얻으려면 다음 지침을 따르세요:

🧑 자체 데이터셋 수집 지침

Slack 데이터를 내보내세요. 작업 공간 관리 페이지로 이동하여 Import/Export 옵션을 클릭하면 됩니다({your_slack_domain}.slack.com/services/export). 그런 다음 적절한 날짜 범위를 선택하고 Start export를 클릭하세요. Slack은 내보내기가 준비되면 이메일과 DM을 보냅니다. 다운로드하면 다운로드 폴더(또는 OS 구성에 따라 다운로드를 찾을 수 있는 위치)에 .zip 파일이 생성됩니다. .zip 파일의 경로를 복사하여 아래의 LOCAL_ZIPFILE로 할당하세요.
from langchain_community.document_loaders import SlackDirectoryLoader
# Optionally set your Slack URL. This will give you proper URLs in the docs sources.
SLACK_WORKSPACE_URL = "https://xxx.slack.com"
LOCAL_ZIPFILE = ""  # Paste the local path to your Slack zip file here.

loader = SlackDirectoryLoader(LOCAL_ZIPFILE, SLACK_WORKSPACE_URL)
docs = loader.load()
docs

Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.
I