Managed models

更新时间:
复制 MD 格式

Managed models let you deploy AI models in the Hologres console with one click and call them through SQL, with no API key required.

Overview

Managed models upgrade Hologres AI Functions by removing the need for an external API key. Deploy models with one click from the Hologres console, then call them through SQL to perform text generation, translation, embedding, image understanding, speech-to-text, and video generation.

You invoke models as standard database functions, unifying data and AI in one SQL interface. Typical use cases:

  • Data enrichment and content generation: Batch-generate product descriptions, marketing copy, and social-media posts from existing data.

  • Retrieval-augmented generation (RAG): Build semantic search with embeddings to power Q&A systems and knowledge bases.

  • Multimodal retrieval: Combine text, image, and video embeddings to enable cross-modal search and recommendation.

  • Image generation: Generate product hero images, ad creatives, and design drafts at scale from text prompts or reference images.

  • Video generation: Automatically produce marketing shorts and product showcase videos from scripts or image assets.

  • Multimedia analysis: Extract structured information from unstructured data such as images, audio, and video.

  • Data cleansing and translation: Embed translation, summarization, classification, and entity extraction directly into ETL pipelines.

Limits

Instance version requirements

Managed models require a supported Hologres instance version.

Note

Supported instance versions: Hologres V4.0.40 or later, V4.1.26 or later, V4.2.5 or later, or V5.0 or later.

Upgrade your instance from the Hologres console if needed.

Supported regions

Available regions:

  • China (Beijing)

  • China (Shanghai)

  • China (Hangzhou)

  • China (Shenzhen)

  • Singapore

Model resource billing

Purchase model resources

Purchase Hologres AI model resources from the AI model resource purchase page before using managed models.

When purchasing resources, note:

  • Pay-as-you-go: Billed based on actual usage with no upfront fees.

  • Region selection: Select the same region as your Hologres instance to avoid cross-region charges.

  • Billing dimensions: Billing units vary by model: token count, image count, video duration, or audio duration.

Pricing details

For per-model pricing, see Managed models billing.

Model management

Model catalog

Hologres managed models support text generation, translation, embedding, image generation/editing, speech-to-text, and video generation.

Model category

model_type

Task type

Input/Output

Notes

Text generation

qwen3.7-max

chat/completions

Text input, text output

Supported parameters: temperature, top_p, max_tokens

qwen3.7-plus

chat/completions

Text input, text output

Supported parameters: temperature, top_p, max_tokens

qwen3.6-plus

chat/completions

Text input, text output

Supported parameters: temperature, top_p, max_tokens

qwen3.6-flash

chat/completions

Text input, text output

Supported parameters: temperature, top_p, max_tokens

Translation

qwen3-vl-plus

chat/completions

Image/video input, text output

Supported parameters: temperature, top_p, max_tokens

qwen-mt-plus

translation

ai_translate

Supported parameters: source_lang, terms, tm_list, domains

Embedding

text-embedding-v4

embedding

ai_embed, text input, float[] output

Embedding dimensions: 1,024 (default), 768, 512, 256, 128, 64

qwen3-vl-embedding

embedding

ai_embed, text/image/video input, float[] output

Embedding dimensions: 2,560 (default), 2,048, 1,536, 1,024, 768, 512, 256

Image generation/editing

qwen-image-2.0-pro

image-generation

Supports image editing and text-to-image generation

wan2.7-image-pro

image-generation

Text-to-image (non-batch); supports 4K high-definition output

Speech-to-text

fun-asr

speech-to-text

Speech recognition

Video generation

wan2.7-t2v

video-generation

Text-to-video generation

wan2.7-i2v

video-generation

Multimodal (text, image, video, audio) to video

wan2.7-r2v

video-generation

Multimodal (text, image, video, audio) to video

wan2.7-videoedit

video-generation

Accepts multimodal input (text, image, video) and performs multiple video generation and editing tasks

happyhorse-1.0-t2v

video-generation

Text-to-video generation

happyhorse-1.0-i2v

video-generation

First-frame image-to-video generation

happyhorse-1.0-r2v

video-generation

Reference-based video generation

happyhorse-1.0-video-edit

video-generation

Video editing

Deploy a model

After purchasing model resources, deploy managed models from the Hologres console:

  1. Log on to the Hologres console and go to the details page of the target instance.

  2. In the left-side navigation pane, choose AI Model to open the model management page.

  3. Click Deploy Model.

  4. Set the model provider to Hologres-managed model.

  5. Select the model categories you need. You can deploy multiple models at once.

  6. Configure parameters for each model (defaults usually work) and set the retry mechanism.

  7. Click Confirm to complete the deployment.

  8. After deployment, view deployed models and their status on the model list page.

Use managed models

After deployment, call models through SQL AI Functions. Hologres provides AI Functions for text generation, embedding, translation, image understanding, speech-to-text, and video generation. For the full list and usage details, see AI functions.

The system assigns a default model to each AI Function. To view the current mapping:

SELECT * FROM list_ai_function_infos();

Sample output:

    function_name     |    model_name
----------------------+------------------
 ai_embed             | my_gte_embedding
 ai_classify          | my_qwen32b
 ai_extract           | my_qwen32b

To change the default model for an AI Function:

SELECT set_ai_function_info('<FUNCTION_NAME>', '<MODEL_NAME>');

Example:

SELECT set_ai_function_info('ai_embed', 'my_gte_embedding');

End-to-end workflow

1. Purchase model resources

Purchase Hologres AI model resources from the AI model resource purchase page. Billing is pay-as-you-go based on actual usage.

2. Deploy the models

After purchasing resources, open the instance details page in the Hologres console, go to the AI Model tab, select Hologres-managed model as the provider, and deploy the models you need.

This example deploys the following models for the AI Function calls in step 3:

  • qwen3.7-plus: Text generation model for inference tasks.

  • text-embedding-v4: Embedding model for vector representations.

3. Call AI Functions

After deployment, call models through SQL AI Functions. For the full list and usage details, see AI functions.

Example 1: Text inference (with qwen3.7-plus)

-- Use a managed model for text generation
SELECT ai_gen('qwen3.7-plus', 'Generate an engaging description for the following product: wireless noise-cancelling headphones');

Example 2: Embedding (with text-embedding-v4)

-- Use a managed model to generate embeddings
SELECT ai_embed('text-embedding-v4', 'Hologres is a real-time data warehouse product');