|
1 | 1 | --- |
2 | | -title: External Functions for AI/ML |
| 2 | +title: Custom AI/ML with External Functions |
3 | 3 | --- |
4 | 4 |
|
5 | | -# External Functions for Custom AI/ML |
| 5 | +# Custom AI/ML with External Functions |
6 | 6 |
|
7 | | -For advanced AI/ML scenarios, Databend supports external functions that connect your data with custom AI/ML infrastructure written in languages like Python. |
| 7 | +Build powerful AI/ML capabilities by connecting Databend with your own infrastructure. External functions let you deploy custom models, leverage GPU acceleration, and integrate with any ML framework while keeping your data secure. |
8 | 8 |
|
9 | | -| Feature | Description | Benefits | |
10 | | -|---------|-------------|----------| |
11 | | -| **Model Flexibility** | Use open-source models or your internal AI/ML infrastructure | • Freedom to choose any model<br/>• Leverage existing ML investments<br/>• Stay up-to-date with latest AI advancements | |
12 | | -| **GPU Acceleration** | Deploy external function servers on GPU-equipped machines | • Faster inference for deep learning models<br/>• Handle larger batch sizes<br/>• Support compute-intensive workloads | |
13 | | -| **Custom ML Models** | Deploy and use your own machine learning models | • Proprietary algorithms<br/>• Domain-specific models<br/>• Fine-tuned for your data | |
14 | | -| **Advanced AI Pipelines** | Build complex AI workflows with specialized libraries | • Multi-step processing<br/>• Custom transformations<br/>• Integration with ML frameworks | |
15 | | -| **Scalability** | Handle resource-intensive AI operations outside Databend | • Independent scaling<br/>• Optimized resource allocation<br/>• High-throughput processing | |
| 9 | +## Key Capabilities |
16 | 10 |
|
17 | | -## Implementation Overview |
| 11 | +| Feature | Benefits | |
| 12 | +|---------|----------| |
| 13 | +| **Custom Models** | Use any open-source or proprietary AI/ML models | |
| 14 | +| **GPU Acceleration** | Deploy on GPU-equipped machines for faster inference | |
| 15 | +| **Data Privacy** | Keep your data within your infrastructure | |
| 16 | +| **Scalability** | Independent scaling and resource optimization | |
| 17 | +| **Flexibility** | Support for any programming language and ML framework | |
18 | 18 |
|
19 | | -1. Create an external server with your AI/ML code (Python with [databend-udf](https://pypi.org/project/databend-udf)) |
20 | | -2. Register the server with Databend using `CREATE FUNCTION` |
21 | | -3. Call your AI/ML functions directly in SQL queries |
| 19 | +## How It Works |
22 | 20 |
|
23 | | -## Example: Custom AI Model Integration |
| 21 | +1. **Create AI Server**: Build your AI/ML server using Python and [databend-udf](https://pypi.org/project/databend-udf) |
| 22 | +2. **Register Function**: Connect your server to Databend with `CREATE FUNCTION` |
| 23 | +3. **Use in SQL**: Call your custom AI functions directly in SQL queries |
| 24 | + |
| 25 | +## Example: Text Embedding Function |
24 | 26 |
|
25 | 27 | ```python |
26 | 28 | # Simple embedding UDF server demo |
@@ -74,7 +76,7 @@ ORDER BY similarity ASC |
74 | 76 | LIMIT 5; |
75 | 77 | ``` |
76 | 78 |
|
77 | | -## Next Steps |
| 79 | +## Learn More |
78 | 80 |
|
79 | | -1. **[External Functions Guide](/guides/query/external-function)** - Detailed setup instructions |
80 | | -2. **[Databend Cloud](https://databend.com)** - Try AI functions with a free trial |
| 81 | +- **[External Functions Guide](/guides/query/external-function)** - Complete setup and deployment instructions |
| 82 | +- **[Databend Cloud](https://databend.com)** - Try external functions with a free account |
0 commit comments