[New] Beehiiv loader (#963)

This commit is contained in:
Sidharth Mohanty
2023-12-08 03:41:56 +05:30
committed by GitHub
parent 4a5ed1dd8d
commit 51ebf3439b
8 changed files with 153 additions and 7 deletions

View File

@@ -72,6 +72,7 @@ class DataFormatter(JSONSerializable):
DataType.SUBSTACK: "embedchain.loaders.substack.SubstackLoader",
DataType.YOUTUBE_CHANNEL: "embedchain.loaders.youtube_channel.YoutubeChannelLoader",
DataType.DISCORD: "embedchain.loaders.discord.DiscordLoader",
DataType.BEEHIIV: "embedchain.loaders.beehiiv.BeehiivLoader",
}
if data_type == DataType.CUSTOM or loader is not None:
@@ -112,6 +113,7 @@ class DataFormatter(JSONSerializable):
DataType.YOUTUBE_CHANNEL: "embedchain.chunkers.common_chunker.CommonChunker",
DataType.DISCORD: "embedchain.chunkers.common_chunker.CommonChunker",
DataType.CUSTOM: "embedchain.chunkers.common_chunker.CommonChunker",
DataType.BEEHIIV: "embedchain.chunkers.beehiiv.BeehiivChunker",
}
if chunker is not None: