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
File details
Details for the file llama_index_readers_discord-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_discord-0.3.0.tar.gz
- Upload date:
- Size: 3.4 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 | df6a622c8f3a1a67859685a7cdecdab619210f8638a8f30fbc11f8a8914db88c |
|
MD5 | bd9c25f39b7063647d40f4e95bb9792b |
|
BLAKE2b-256 | d7b87fbfb41b85f989151782ed4c4bcb6c3e5c3e89c142613ad0202034771301 |
File details
Details for the file llama_index_readers_discord-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_discord-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.7 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 | 45124c0044304744866a5e975d0ba67d9f9e96f08e31a02e94ca87a95c22d52e |
|
MD5 | 7aff45cfb4e15432fb4280cd67494846 |
|
BLAKE2b-256 | 8db4699182ded7fe833b58130f8a89957ca8e47eb1022ce87e5b3d622acc4815 |