Skip to main contentğŸ¦œï¸�ğŸ”— LangChainDocsUse casesIntegrationsAPICommunityChat our docsLangSmithJS/TS DocsSearchCTRLKProvidersAnthropicAWSGoogleMicrosoftOpenAIMoreComponentsLLMsChat modelsDocument loadersDocument transformersText embedding modelsVector storesRetrieversToolsAgents and toolkitsMemoryCallbacksChat loadersDiscordFacebook MessengerGMailiMessageFine-Tuning on LangSmith Chat DatasetsFine-Tuning on LangSmith LLM RunsSlacktelegramTwitter (via Apify)WeChatWhatsAppComponentsChat loadersWeChatOn this pageWeChatThere is not yet a straightforward way to export personal WeChat messages. However if you just need no more than few hundreds of messages for model fine-tuning or few-shot examples, this notebook shows how to create your own chat loader that works on copy-pasted WeChat messages to a list of LangChain messages.Highly inspired by https://python.langchain.com/docs/integrations/chat_loaders/discordThe process has five steps:Open your chat in the WeChat desktop app. Select messages you need by mouse-dragging or right-click. Due to restrictions, you can select up to 100 messages once a time. CMD/Ctrl + C to copy.Create the chat .txt file by pasting selected messages in a file on your local computer.Copy the chat loader definition from below to a local file.Initialize the WeChatChatLoader with the file path pointed to the text file.Call loader.load() (or loader.lazy_load()) to perform the conversion.1. Create message dumpâ€‹This loader only supports .txt files in the format generated by copying messages in the app to your clipboard and pasting in a file. Below is an example.wechat_chats.txtå¥³æœ‹å�‹ 2023/09/16 2:51 PMå¤©æ°”æœ‰ç‚¹å‡‰ç”·æœ‹å�‹ 2023/09/16 2:51 PMç��ç°Ÿå‡‰é£�è‘—ï¼Œç‘¶ç�´å¯„æ�¨ç”Ÿã€‚åµ‡å�›æ‡’ä¹¦æœ­ï¼Œåº•ç‰©æ…°ç§‹æƒ…ã€‚å¥³æœ‹å�‹ 2023/09/16 3:06 PMå¿™ä»€ä¹ˆå‘¢ç”·æœ‹å�‹ 2023/09/16 3:06 PMä»Šå¤©å�ªå¹²æˆ�äº†ä¸€ä»¶åƒ�æ ·çš„äº‹é‚£å°±æ˜¯æƒ³ä½ å¥³æœ‹å�‹ 2023/09/16 3:06 PM[åŠ¨ç”»è¡¨æƒ…]2. Define chat loaderâ€‹LangChain currently does not support import
There is not yet a straightforward way to export personal WeChat messages. However if you just need no more than few hundreds of messages for model fine-tuning or few-shot examples, this notebook shows how to create your own chat loader that works on copy-pasted WeChat messages to a list of LangChain messages.
There is not yet a straightforward way to export personal WeChat messages. However if you just need no more than few hundreds of messages for model fine-tuning or few-shot examples, this notebook shows how to create your own chat loader that works on copy-pasted WeChat messages to a list of LangChain messages. ->: Skip to main contentğŸ¦œï¸�ğŸ”— LangChainDocsUse casesIntegrationsAPICommunityChat our docsLangSmithJS/TS DocsSearchCTRLKProvidersAnthropicAWSGoogleMicrosoftOpenAIMoreComponentsLLMsChat modelsDocument loadersDocument transformersText embedding modelsVector storesRetrieversToolsAgents and toolkitsMemoryCallbacksChat loadersDiscordFacebook MessengerGMailiMessageFine-Tuning on LangSmith Chat DatasetsFine-Tuning on LangSmith LLM RunsSlacktelegramTwitter (via Apify)WeChatWhatsAppComponentsChat loadersWeChatOn this pageWeChatThere is not yet a straightforward way to export personal WeChat messages. However if you just need no more than few hundreds of messages for model fine-tuning or few-shot examples, this notebook shows how to create your own chat loader that works on copy-pasted WeChat messages to a list of LangChain messages.Highly inspired by https://python.langchain.com/docs/integrations/chat_loaders/discordThe process has five steps:Open your chat in the WeChat desktop app. Select messages you need by mouse-dragging or right-click. Due to restrictions, you can select up to 100 messages once a time. CMD/Ctrl + C to copy.Create the chat .txt file by pasting selected messages in a file on your local computer.Copy the chat loader definition from below to a local file.Initialize the WeChatChatLoader with the file path pointed to the text file.Call loader.load() (or loader.lazy_load()) to perform the conversion.1. Create message dumpâ€‹This loader only supports .txt files in the format generated by copying messages in the app to your clipboard and pasting in a file. Below is an example.wechat_chats.txtå¥³æœ‹å�‹ 2023/09/16 2:51 PMå¤©æ°”æœ‰ç‚¹å‡‰ç”·æœ‹å�‹ 2023/09/16 2:51 PMç��ç°Ÿå‡‰é£�è‘—ï¼Œç‘¶ç�´å¯„æ�¨ç”Ÿã€‚åµ‡å�›æ‡’ä¹¦æœ­ï¼Œåº•ç‰©æ…°ç§‹æƒ…ã€‚å¥³æœ‹å�‹ 2023/09/16 3:06 PMå¿™ä»€ä¹ˆå‘¢ç”·æœ‹å�‹ 2023/09/16 3:06 PMä»Šå¤©å�ªå¹²æˆ�äº†ä¸€ä»¶åƒ�æ ·çš„äº‹é‚£å°±æ˜¯æƒ³ä½ å¥³æœ‹å�‹ 2023/09/16 3:06 PM[åŠ¨ç”»è¡¨æƒ…]2. Define chat loaderâ€‹LangChain currently does not support import