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 loads the chat data from the folder.
load
()Eagerly load the chat sessions into memory.
- 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