FolderFacebookMessengerChatLoader#

class langchain_community.chat_loaders.facebook_messenger.FolderFacebookMessengerChatLoader(path: str | Path)[source]#

Load Facebook Messenger chat data from a folder.

Parameters:

path (Union[str, Path]) – The path to the directory containing the chat files.

Methods

__init__(path)

lazy_load()

Lazy loads the chat data from the folder.

load()

Eagerly load the chat sessions into memory.

__init__(path: str | Path) None[source]#
Parameters:

path (str | Path)

Return type:

None

lazy_load() Iterator[ChatSession][source]#

Lazy loads the chat data from the folder.

Yields:

ChatSession – A chat session containing the loaded messages.

Return type:

Iterator[ChatSession]

load() list[ChatSession]#

Eagerly load the chat sessions into memory.

Returns:

A list of chat sessions.

Return type:

list[ChatSession]

Examples using FolderFacebookMessengerChatLoader