FastGPT
FastGPT is a knowledge base Q&A system based on LLM large language models, providing out-of-the-box data processing and model invocation capabilities.
Features
- Out-of-the-box: Support direct document upload, automatic data preprocessing, vectorization and QA splitting
- Visual Workflow: Provides easy-to-use visual workflow orchestration for more complex Q&A scenarios
- Unlimited Extension: Support plugin mode for quick integration of new features
- Easy Debugging: Provides reference tracking and complete conversation logs
Service Components
This template includes the following services:
- FastGPT: Main application service providing Web interface and API
- PostgreSQL: Vector database for storing vector data
- MongoDB: Main database for storing business data
- Redis: Cache database providing high-performance caching
- MinIO: S3-compatible object storage for file storage
- Sandbox: Code execution sandbox environment
- Plugin: Plugin service supporting extended functionality
- MCP Server: Model Context Protocol server
- AI Proxy: AI proxy service managing model invocations
Environment Variables
After deployment, the following environment variables will be automatically configured:
${FASTGPT_URL}
: FastGPT main service URL
${POSTGRES_CONNECTION_STRING}
: PostgreSQL vector database connection string
${MONGO_CONNECTION_STRING}
: MongoDB database connection string
${REDIS_CONNECTION_STRING}
: Redis cache connection string
${MINIO_ENDPOINT}
: MinIO object storage endpoint
${SANDBOX_URL}
: Sandbox service URL
${PLUGIN_URL}
: Plugin service URL
${AI_PROXY_URL}
: AI proxy service URL
Default Login Information
- Username:
root
- Password: The password you set during template deployment
Usage Guide
- After deployment, first initialize the MongoDB replica set using the command provided in the MongoDB service instructions
- Access FastGPT through the provided domain
- Login to the management interface using the root account
- Create knowledge bases and upload documents
- Configure AI model API Keys
- Start using the intelligent Q&A functionality
MongoDB Replica Set Setup
IMPORTANT: After deployment, you must manually initialize the MongoDB replica set for FastGPT to function properly.
Run this command in the MongoDB service terminal or Command Execution interface:
mongosh -u "${MONGO_USERNAME}" -p "${MONGO_PASSWORD}" --eval "rs.initiate({ _id: \"rs0\", members: [ { _id: 0, host: \"mongodb.zeabur.internal\" }] })"
Note: Replace the environment variables with the actual MongoDB username and password shown in the MongoDB service instructions, or run this command directly in the MongoDB service terminal where the environment variables will be automatically resolved.
Important Notes
- MongoDB replica set must be initialized first before FastGPT can start successfully
- Initial startup may take several minutes for database initialization
- It's recommended to change default passwords in production environments
- You need to configure OpenAI or other LLM service API Keys for normal Q&A functionality