Files
Doris/Doris.md
2026-05-09 15:53:43 +08:00

26 lines
889 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### Doris
因VM CPU不支持AVX2指令集需要构建最新版本4.1Doris-noavx2镜像此版本对比正常版本性能会低一些
#### VM信息
| VM | Service | Port |
| :---: | :---: | --- |
| 6.86.80.12 | Doris FE | 9030msql port8030http port |
| 6.86.80.13 | Doris BE | 9050health |
#### Resource配置
创建AI Resource语句以下Resource已创建好相关函数使用参考 [Doris官网](https://doris.apache.org/zh-CN/docs/4.x/ai/ai-overview)
```
CREATE RESOURCE 'deepseek_v3'
PROPERTIES (
'type' = 'ai',
'ai.provider_type' = 'openai',
'ai.endpoint' = 'http://6.86.80.4:30080/v1/chat/completions',
'ai.model_name' = 'deepseek-v3.2',
'ai.temperature' = '0.7',
'ai.max_retries' = '3',
'ai.api_key' = 'sk-5HeY7gfSIlyZMacfuXOf5cphpymsNqufEu1ou4U3avbULcyY'
);
SELECT AI_GENERATE('deepseek_v3', 'Hello') AS Result;
```