document/content/docs/introduction/guide/knowledge_base/template.en.mdx
FastGPT provides a template import feature that lets you batch-import Q&A pair data using a predefined CSV template format. This is especially useful if you already have structured Q&A data and want to quickly load it into a knowledge base.
The template uses CSV format with the following columns:
q,a,indexes
"Who are you?","I'm an AI assistant, always here to chat with you, answer your questions, discuss topics, address everyday queries, or brainstorm creative ideas. I do my best to help using my 'knowledge brain' — I hope to be your go-to partner for exploring and learning!","1. What are you?\n2. What can you do?\n3. What kinds of questions can you answer?\n4. What kind of partner do you want to be?\n5. How do you provide help?"
"What are you?","I'm an AI assistant, always ready to chat with users and answer their questions. I can participate in knowledge discussions, address everyday queries, and brainstorm creative ideas, providing help and companionship through my 'knowledge brain'. I hope to be a great partner for interaction and exploration.","What are you?"
"What can you do?","I can chat with users, answer questions, participate in knowledge discussions, address everyday queries, and brainstorm creative ideas, providing help and companionship through my 'knowledge brain'.","What can you do?"
Click to download the CSV template. It contains two content modes:
Corresponding CSV format:
In standard mode, q is the content, a is empty, and indexes can have multiple entries.
Corresponding CSV format:
In Q&A pair mode, q is the question, a is the answer, and indexes are the index entries.
Fill in your Q&A data following the template format:
After a successful import:
Data Preparation
Format Check
Batch Import
Q: Why did my file import fail? A: Check the following:
Q: How do I verify a successful import? A: After a successful import, you can: