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
File details
Details for the file llama_index_readers_slack-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_slack-0.3.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6da62eb78272405162292bdf0e0ded825c84043b422222fdf9f025d032b2f548 |
|
MD5 | 21b55e2831c20ffcbfabdb69b5a9b4f0 |
|
BLAKE2b-256 | eed550adbd9f2aa046c270678306b554ba86b4bb7bcd87560380fd4aaa449e9a |
File details
Details for the file llama_index_readers_slack-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_slack-0.3.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 434db5c35b0654367d4c5a1741e86936a80a0b1622a668409fa49b5c2271702c |
|
MD5 | 869c32977b37b8508ef058fc35b99ffa |
|
BLAKE2b-256 | c3d74d159f66486649029d0ba779883300121edf26af40ba336d4df93dbd19fa |