Discord loader (#976)

This commit is contained in:
Sidharth Mohanty
2023-11-29 23:37:05 +05:30
committed by GitHub
parent 141a23fb1e
commit 38426a7af1
6 changed files with 185 additions and 1 deletions

View File

@@ -66,6 +66,7 @@ class DataFormatter(JSONSerializable):
DataType.SUBSTACK: "embedchain.loaders.substack.SubstackLoader",
DataType.GITHUB: "embedchain.loaders.github.GithubLoader",
DataType.YOUTUBE_CHANNEL: "embedchain.loaders.youtube_channel.YoutubeChannelLoader",
DataType.DISCORD: "embedchain.loaders.discord.DiscordLoader",
}
custom_loaders = set(
@@ -118,6 +119,7 @@ class DataFormatter(JSONSerializable):
DataType.SUBSTACK: "embedchain.chunkers.substack.SubstackChunker",
DataType.GITHUB: "embedchain.chunkers.common_chunker.CommonChunker",
DataType.YOUTUBE_CHANNEL: "embedchain.chunkers.common_chunker.CommonChunker",
DataType.DISCORD: "embedchain.chunkers.common_chunker.CommonChunker",
}
if data_type in chunker_classes: