Quick Start
Create your first custom pipeline in under 5 minutes.
⚠️ Disclaimer: This guide is specifically for adding new custom pipelines within the GLChat. The instructions and examples provided here are tailored to GLChat's architecture and infrastructure. They are not intended for use in other projects or standalone applications.
Step 1: Generate Pipeline Files
Use the automated CLI tool to create your pipeline structure:
make new-pipelineOr directly:
uv run python scripts/create_pipeline.pyThe script will prompt you for:
Pipeline Name: Lowercase, alphanumeric with underscores (e.g.,
my_custom_pipeline)Description: Brief description of the pipeline's purpose
Author Name: Your full name
Author Email: Your email (should be @gdplabs.id)
Naming Convention:
Folder Name: Use
snake_case(e.g.,my_custom_pipeline)Pipeline ID: System converts to
kebab-case(folder:my_custom_pipeline→ ID:my-custom-pipeline)
The CLI tool automatically:
Creates the pipeline folder:
glchat_be/config/pipeline/<pipeline_name>/Generates
__init__.pyandpipeline.pywith proper stubs and docstringsCreates a migration file with auto-detected
down_revisionProvides next steps guidance
Step 2: Run Migration
Apply the database migration to register your pipeline:
This registers your pipeline in the database, making it available in the Admin Dashboard.
That's it! Your pipeline is now ready to use. The CLI tool generates a complete, working LLM pipeline that you can use immediately.
Next Steps
Your pipeline is ready to use! Here are some optional next steps:
Customize your pipeline (optional) - The generated pipeline is a simple LLM-only pipeline. To add retrieval, reranking, or other advanced features, modify
glchat_be/config/pipeline/<pipeline_name>/pipeline.py. See the official GL SDK guide for examples.Customize the migration (optional) - If you need organization-specific settings or other customizations, modify the generated migration file. See Database Migration Guide
Add advanced configuration (optional) - Configure custom settings, parameters, and more. See Advanced Configuration Guide
Last updated