labring / FastGPT

FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, and visual AI workflow orchestration, letting you easily develop and deploy complex question-answering systems without the need for extensive setup or configuration.
https://tryfastgpt.ai
Other
17.49k stars 4.69k forks source link

获取对话日志文件 #1060

Closed xiaoToby closed 4 months ago

xiaoToby commented 7 months ago

例行检查

功能描述 现有在前端界面中可以以多种格式(html,md,pdf)导出对话日志,如果想导出数据库(pg/mongo)中的对话日志文件呢 应用场景

相关示例

c121914yu commented 7 months ago

得去数据库导出。

xiaoToby commented 6 months ago

是啊,是得去数据库导出,我还没找出是在数据库得哪个路径下去找

bruceye777 commented 6 months ago

目前情况下只能通过数据库导出,参考命令如下: mongoexport -u "xxxx" -p "xxxx" --authenticationDatabase admin --db=fastgpt --collection=chatitems --type=csv --fields=chatId,appId,title,obj,value,time --out=/data/db/chatitems.csv 聊天记录放在chatitems里面,fields定义需要的字段,导出到chatitems.csv