langchain.chat_loaders.utils.map_ai_messages¶
langchain.chat_loaders.utils.map_ai_messages(chat_sessions: Iterable[ChatSession], sender: str) → Iterator[ChatSession][source]¶
Convert messages from the specified ‘sender’ to AI messages.
This is useful for fine-tuning the AI to adapt to your voice.
Examples using map_ai_messages¶
Facebook Messenger
GMail
Slack
WhatsApp
iMessage
Telegram
Discord