Skip to content

Commit c812f26

Browse files
committed
improve ai functions
1 parent 6f6c5ac commit c812f26

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

docs/en/guides/51-ai-functions/01-external-functions.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
---
2-
title: External Functions for AI/ML
2+
title: Custom AI/ML with External Functions
33
---
44

5-
# External Functions for Custom AI/ML
5+
# Custom AI/ML with External Functions
66

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.
88

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
1610

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 |
1818

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
2220

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
2426

2527
```python
2628
# Simple embedding UDF server demo
@@ -74,7 +76,7 @@ ORDER BY similarity ASC
7476
LIMIT 5;
7577
```
7678

77-
## Next Steps
79+
## Learn More
7880

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

docs/en/guides/51-ai-functions/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# AI Functions in Databend
1+
# AI & ML Integration
22

3-
Databend provides AI and ML capabilities through two main approaches: external functions for custom AI/ML infrastructure, and MCP servers for natural language data interaction.
3+
Databend enables powerful AI and ML capabilities through two complementary approaches: build custom AI functions with your own infrastructure, or create conversational data experiences using natural language.
44

55
## External Functions - The Recommended Approach
66

0 commit comments

Comments
 (0)