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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6eb92d4b7ae13c619f3442411b0693b5425179f26b6507a5de656371aa2f80e |
|
MD5 | eadca0bde26cc0b7ac8c50f905cc9edd |
|
BLAKE2b-256 | 94758e368667434b2edf66214368aec72f5575d43af13f8c77d6e7f6397c2621 |
Close
Hashes for llama_index_readers_slack-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2e6febbfb3c328912c69dc7cd2ccd80e4abff770c652d61fdc6e5bf0c7e27da |
|
MD5 | 47023b65f75bffaa0fe00676658e7bef |
|
BLAKE2b-256 | 485e3925aaaad07927e3cb63de04b37f894cdecfe3bf0c65b7d2cf0c42e5c9e2 |