llama-index readers slack integration
Project description
LlamaIndex Readers Integration: Slack
Overview
The Slack Reader allows you to read conversations from Slack channels. It retrieves messages from specified channels within a given time range, if provided.
For more detailed information about the Slack Reader, visit Slack API Home.
Installation
You can install the Slack Reader via pip:
pip install llama-index-readers-slack
Usage
from llama_index.readers.slack import (
SlackReader,
) # Import the SlackReader module.
# Initialize SlackReader with specified parameters.
reader = SlackReader(
slack_token="<Slack Token>", # Provide the Slack API token for authentication.
earliest_date="<Earliest Date>", # Specify the earliest date to read conversations from.
latest_date="<Latest Date>", # Specify the latest date to read conversations until.
)
# Load data from Slack channels using the initialized SlackReader.
documents = reader.load_data(
channel_ids=["C04DC2VUY3F"]
) # Specify the channel IDs to load data from.
This loader is designed to be used as a way to load data into LlamaIndex and/or subsequently used as a Tool in a LangChain Agent.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for llama_index_readers_slack-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44f6556bf12386136d1f5bf9a6024702442649a7b47b47ad1bc6988cf93d01f7 |
|
MD5 | 1fd54df0f68526e97708e97e231fdf18 |
|
BLAKE2b-256 | 62ba48aa236c34d4584a85374f57f47c57787fa3f498b815014c29d0de26e2ae |
Close
Hashes for llama_index_readers_slack-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8835c23cb9c58d7a4f58e435db40ae8b73415fa80cd4752497ac71cbed5fc44 |
|
MD5 | 5f039a6dae5608172fbd3f2436df28f7 |
|
BLAKE2b-256 | ff742b901263ada7cdcaf1748d8bee9c4ca5b42d2f5245ad6ef8a835786da263 |