llama-index readers discord integration
Project description
Discord Loader
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.
from llama_index import download_loader
import os
DiscordReader = download_loader("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 and/or subsequently used as a Tool in a LangChain Agent. See here for examples.
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.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3430c8e41227a536057cb48d4d3cee3213ce0788042ec19a2aec9f4c6e40be02 |
|
MD5 | 1acdaa95bd8b85816275c3f64630da7e |
|
BLAKE2b-256 | df410ee8a7333d509caba697775001cf8eab596b35bdfe225e9b1b12ef6e01ad |
Close
Hashes for llama_index_readers_discord-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd2ee78309e50db99dc297da1262ce69691a58b9a7b01358c1b953c1011ee3bc |
|
MD5 | 20dae7fd9945b6f07a65bc9abff956f3 |
|
BLAKE2b-256 | 67c95dc472b9195aac5e00b878e4c87af7073413a55a5c0652045cff2a140e00 |