import QA to datasets failed #726

Closed
opened 2026-02-21 17:28:11 -05:00 by yindo · 0 comments
Owner

Originally created by @leslie2046 on GitHub (Nov 22, 2023).

Dify version

0.3.31

Cloud or Self Hosted

Self Hosted

Steps to reproduce

1.create a empty dataset
2.import from text file(fail.csv)
3.next
图片
4.import from text file(success.csv)
5.next
图片

✔️ Expected Behavior

we can support import qa file with json format like below:
[{
"Q": "你是谁啊",
"A": "我是小智啊。"
},
{
"Q": "你会干什么啊?",
"A": "我会的可多啦有查天气、汇率、新闻、业务咨询等。"
},
{
"Q": "你几岁了啊",
"A": "哈哈、我3岁了呀!"
}
]

Actual Behavior

CSV is spliting by comma,so if question or answer contains comma,it will split to more than 2 parts.
success:
图片
fail:
图片

fail.csv
success.csv

Originally created by @leslie2046 on GitHub (Nov 22, 2023). ### Dify version 0.3.31 ### Cloud or Self Hosted Self Hosted ### Steps to reproduce 1.create a empty dataset 2.import from text file(fail.csv) 3.next ![图片](https://github.com/langgenius/dify/assets/10449699/b1257e22-114a-49a9-a1ef-581b7e824151) 4.import from text file(success.csv) 5.next ![图片](https://github.com/langgenius/dify/assets/10449699/14cfbaf4-1c9f-46aa-911c-0f5d74f99b63) ### ✔️ Expected Behavior we can support import qa file with json format like below: [{ "Q": "你是谁啊", "A": "我是小智啊。" }, { "Q": "你会干什么啊?", "A": "我会的可多啦有查天气、汇率、新闻、业务咨询等。" }, { "Q": "你几岁了啊", "A": "哈哈、我3岁了呀!" } ] ### ❌ Actual Behavior CSV is spliting by comma,so if question or answer contains comma,it will split to more than 2 parts. success: ![图片](https://github.com/langgenius/dify/assets/10449699/ea4ebe9b-560c-4dfd-a862-d17f6097eb04) fail: ![图片](https://github.com/langgenius/dify/assets/10449699/353943cf-42fb-4532-9f34-4f9ce94e5974) [fail.csv](https://github.com/langgenius/dify/files/13434918/fail.csv) [success.csv](https://github.com/langgenius/dify/files/13434931/success.csv)
yindo added the 🐞 bug label 2026-02-21 17:28:11 -05:00
yindo closed this issue 2026-02-21 17:28:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#726