Skip to main content

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

llama_index_readers_slack-0.4.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_readers_slack-0.4.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_readers_slack-0.4.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_slack-0.4.0.tar.gz
Algorithm Hash digest
SHA256 a26e7469a4558b6331aa007c207be466862ab20d61b6f19b6fc7cb91846ee38d
MD5 ab781982bdc2b3812feb0d471ba46f1c
BLAKE2b-256 4a99fb87c0ba801fa9388d5b5dacac237924d8617fd0509a6cb9be8de25453c6

See more details on using hashes here.

File details

Details for the file llama_index_readers_slack-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_slack-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 83ea8cd2394a149721235cd61c6df0c225e83817c2b875b5737917440f456577
MD5 5370e3f882882321402792255865ba92
BLAKE2b-256 afa41be33e854ca41508ad40f1e29c08325e2eb50f534d89fe653541b420aad7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page