Skip to main content

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

llama_index_readers_discord-0.4.0.tar.gz (4.9 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_discord-0.4.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llama_index_readers_discord-0.4.0.tar.gz
Algorithm Hash digest
SHA256 9c8099f6de88f0842f3db112f0ffe8138bc5861d8a1f74646abe2775b45bf7e0
MD5 0669e32f8af4d295a09bfe2a80c1ff30
BLAKE2b-256 47d1c8fc729558750f646070d3d65e95495bdff24d2989fc57645ef23249b8df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_discord-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1440c7ed568055cd170e265c02c97f15bbb6b04d33d26467567660bef94a405c
MD5 503e7096660d2d6051a87c9e9f980aac
BLAKE2b-256 1debc9ae3b9a4c850d7012cb0f48dd29dfd8bf37610954f9503bfbdb0a1d1143

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