Skip to content

Commit 27e6cac

Browse files
committed
fix: csvTemplate error
--bug=1052711 --user=王孝刚 【知识库】英文模式-文档-QA问答对-下载的csv模版内容错误 https://www.tapd.cn/57709429/s/1661565
1 parent 13ce64e commit 27e6cac

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

apps/dataset/serializers/document_serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def export(self, with_valid=True):
248248
"rb")
249249
content = file.read()
250250
file.close()
251-
return HttpResponse(content, status=200, headers={'Content-Type': 'text/cxv',
251+
return HttpResponse(content, status=200, headers={'Content-Type': 'text/csv',
252252
'Content-Disposition': 'attachment; filename="csv_template.csv"'})
253253
elif self.data.get('type') == 'excel':
254254
file = open(os.path.join(PROJECT_DIR, "apps", "dataset", 'template',
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
Section title (optional), Section content (required, question answer, no more than 4096 characters)), question (optional, one per line in the cell)
2-
MaxKB product introduction, "MaxKB is a knowledge base question and answer system based on the LLM large language model. MaxKB = Max Knowledge Base aims to become the most powerful brain of the enterprise.
3-
Out-of-the-box: Supports direct uploading of documents, automatic crawling of online documents, automatic text splitting and vectorization, and a good intelligent Q&A interactive experience;
4-
Seamless embedding: Supports rapid embedding into third-party business systems with zero coding;
5-
Multi-model support: Supports docking with mainstream large models, including Ollama local private large models (such as Llama 2, Llama 3, qwen), Tongyi Qianwen, OpenAI, Azure OpenAI, Kimi, Zhipu AI, iFlytek Spark and Baidu Qianfan Large models etc. ","What is MaxKB?
1+
Section title (optional), Section content (required,question answer,no more than 4096 characters)), question (optional,one per line in the cell)
2+
MaxKB product introduction,"MaxKB is a knowledge base question-answering system based on the LLM large language model. MaxKB = Max Knowledge Base,aims to become the most powerful brain of the enterprise。Out-of-the-box: supports direct document upload、automatic crawling of online documents、automatic text splitting and vectorization、and good intelligent question-answering interactive experience;Seamless embedding: supports zero-coding and rapid embedding into third-party business systems;Multi-model support: supports docking with mainstream large models,including Ollama local private large models (such as Llama 2、Llama 3、qwen)、Tongyi Qianwen、OpenAI、Azure OpenAI、Kimi、Zhipu AI、iFlytek Spark and Baidu Qianfan large models、etc.","What is MaxKB?
63
MaxKB product introduction
74
Large language model supported by MaxKB
85
MaxKB advantages"

0 commit comments

Comments
 (0)