langchain_community.chat_loaders.facebook_messenger
.SingleFileFacebookMessengerChatLoader¶
- class langchain_community.chat_loaders.facebook_messenger.SingleFileFacebookMessengerChatLoader(path: Union[Path, str])[source]¶
Load Facebook Messenger chat data from a single file.
- Parameters
path (Union[Path, str]) – The path to the chat file.
- path¶
The path to the chat file.
- Type
Path
Methods
__init__
(path)Lazy loads the chat data from the file.
load
()Eagerly load the chat sessions into memory.
- __init__(path: Union[Path, str]) None [source]¶
- Parameters
path (Union[Path, str]) –
- Return type
None
- lazy_load() Iterator[ChatSession] [source]¶
Lazy loads the chat data from the file.
- Yields
ChatSession – A chat session containing the loaded messages.
- Return type
Iterator[ChatSession]
- load() List[ChatSession] ¶
Eagerly load the chat sessions into memory.
- Return type
List[ChatSession]