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_load()

Lazy loads the chat data from the file.

load()

Eagerly load the chat sessions into memory.

__init__(path: Union[Path, str]) None[source]
lazy_load() Iterator[ChatSession][source]

Lazy loads the chat data from the file.

Yields

ChatSession – A chat session containing the loaded messages.

load() List[ChatSession]

Eagerly load the chat sessions into memory.

Examples using SingleFileFacebookMessengerChatLoader