Skip to main content
Open In ColabOpen on GitHub

WhatsApp 聊天

WhatsApp (also called WhatsApp Messenger) is a freeware, cross-platform, centralized instant messaging (IM) and voice-over-IP (VoIP) service. It allows users to send text and voice messages, make voice and video calls, and share images, documents, user locations, and other content.

本笔记本介绍如何将数据从 WhatsApp Chats 加载为可被 LangChain 摄入的格式。

from langchain_community.document_loaders import WhatsAppChatLoader
API 参考:WhatsAppChatLoader
loader = WhatsAppChatLoader("example_data/whatsapp_chat.txt")
loader.load()