Files
Doris/README.md
T
2026-09-24 11:17:55 +08:00

29 lines
930 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.1)Doris-noavx2镜像,此版本对比正常版本性能会低一些
#### VM信息
| VM | Service | Port |
| :---: | :---: | --- |
| 6.86.80.12 | Doris FE | 9030(mysql port)8030(http port) |
| 6.86.80.13 | Doris BE | 9050(health) |
http://6.86.80.12:8030
admin/无密码
#### 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;
```