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
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.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7504abb000b5672257b1e043e9e4ff84e9285643d5f7b1c61874b31a089c7d1 |
|
MD5 | c0dd2b1f5039a4e0b51f8dd75319c19f |
|
BLAKE2b-256 | ca9435722eb69f64721c95725fd7cde86baa1fe36589fddeaa8e37c4401793b6 |
Close
Hashes for llama_index_readers_slack-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 311d52b7eb502b621899d2c898516ae323581b9255d6a6c4b348f0d6683ad306 |
|
MD5 | da4ee599575b5df3fbd34b8254f6f8cb |
|
BLAKE2b-256 | 1f5a3732f53b48507d18fc24d06df97747c9c0a7227f39352a34efc03db07392 |