llama-index readers discord integration
Project description
Discord Loader
pip install llama-index-readers-discord
This loader loads conversations from Discord. The user specifies channel_ids
and we fetch conversations from
those channel_ids
.
Usage
Here's an example usage of the DiscordReader.
import os
from llama_index.readers.discord import DiscordReader
discord_token = os.getenv("DISCORD_TOKEN")
channel_ids = [1057178784895348746] # Replace with your channel_id
reader = DiscordReader(discord_token=discord_token)
documents = reader.load_data(channel_ids=channel_ids)
This loader is designed to be used as a way to load data into LlamaIndex.
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_discord-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba5b70a63d03fe9167bd73d275567eba33a28da17db6772085ca95ddb35e9426 |
|
MD5 | 85c81db5769121ea80762623b1be85ba |
|
BLAKE2b-256 | 0687a97362a1414bbc01faa0c73d6ccefbf78afe8868d0bf5049875bd8ebea65 |
Close
Hashes for llama_index_readers_discord-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb6b4fafcc3c8c56f9e79b67adecf814a76450017ad69581926280685e796b31 |
|
MD5 | eb891f41c443caa66aea5acbcc88b5fe |
|
BLAKE2b-256 | 124842865e61802ee7b9310e25bedc3632509614967519cf8b49edb64ea8f7f7 |