Skip to main content
MessengerMeta Platforms에서 개발한 미국의 독점 인스턴트 메시징 앱 및 플랫폼입니다. 원래 2008년에 Facebook Chat으로 개발되었으며, 회사는 2010년에 메시징 서비스를 개편했습니다.
이 노트북은 Facebook Chats에서 LangChain으로 수집할 수 있는 형식으로 데이터를 로드하는 방법을 다룹니다.
# pip install pandas
from langchain_community.document_loaders import FacebookChatLoader
loader = FacebookChatLoader("example_data/facebook_chat.json")
loader.load()
[Document(page_content='User 2 on 2023-02-05 03:46:11: Bye!\n\nUser 1 on 2023-02-05 03:43:55: Oh no worries! Bye\n\nUser 2 on 2023-02-05 03:24:37: No Im sorry it was my mistake, the blue one is not for sale\n\nUser 1 on 2023-02-05 03:05:40: I thought you were selling the blue one!\n\nUser 1 on 2023-02-05 03:05:09: Im not interested in this bag. Im interested in the blue one!\n\nUser 2 on 2023-02-05 03:04:28: Here is $129\n\nUser 2 on 2023-02-05 03:04:05: Online is at least $100\n\nUser 1 on 2023-02-05 02:59:59: How much do you want?\n\nUser 2 on 2023-02-04 22:17:56: Goodmorning! $50 is too low.\n\nUser 1 on 2023-02-04 14:17:02: Hi! Im interested in your bag. Im offering $50. Let me know if you are interested. Thanks!\n\n', metadata={'source': 'example_data/facebook_chat.json'})]

Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.
I