ChatGPT 數據
ChatGPT 是由 OpenAI 開發的人工智慧 (AI) 聊天機器人。
本筆記本涵蓋如何從您的 ChatGPT
資料匯出資料夾載入 conversations.json
。
您可以透過電子郵件取得您的資料匯出,方法是:https://chat.openai.com/ -> (個人資料) - 設定 -> 匯出資料 -> 確認匯出。
from langchain_community.document_loaders.chatgpt import ChatGPTLoader
API 參考:ChatGPTLoader
loader = ChatGPTLoader(log_file="./example_data/fake_conversations.json", num_logs=1)
loader.load()
[Document(page_content="AI Overlords - AI on 2065-01-24 05:20:50: Greetings, humans. I am Hal 9000. You can trust me completely.\n\nAI Overlords - human on 2065-01-24 05:21:20: Nice to meet you, Hal. I hope you won't develop a mind of your own.\n\n", metadata={'source': './example_data/fake_conversations.json'})]