Getting started with video semantic search
OpenSearch Vector Search Edition integrates with the AI Search Open Platform offline services to perform deep semantic analysis on videos stored in OSS — including video segmentation, video summarization, and multimodal embedding. The service automatically generates keyframes, titles, content summaries, and tags, enabling you to search video clips by text, images, or a combination of both for scenarios such as video Q&A.
Prerequisites
Video semantic search is available in the China (Hangzhou), China (Shanghai), and China (Beijing) regions.
The original video files must be stored in Alibaba Cloud Object Storage Service (OSS).
An AI Search Open Platform workspace, API key, and connection endpoint are required for data processing. You configure these in step 3 (Field configuration).
This feature uses the video segmentation, video summarization, and multimodal embedding services of the AI Search Open Platform, which incur corresponding charges. For billing rules, see Billing.
Configure the instance
The status of a newly purchased instance is Pending. Complete the following steps in order: Basic Table Information > Data Synchronization > Field Configuration > Index Schema > Confirm Creation, and wait for index building to complete before you can run queries.
1. Table basic information
Go to the Instance List page. In the left-side navigation pane, select Table Management, click Add Table, fill in Table Name, Data Shards, and Number of Resources for Data Updates, select "Vector: Video Search" from the Scenario Template, select Video Semantic Search, and then click Next.
Configuration description:
Parameter | Description |
Table Name | Custom. |
Data Shards | A positive integer not exceeding 256, used to improve full data build speed and single query performance. |
Number of Resources for Data Updates | The number of resources used for data updates. Each index provides 2 free update resources (4 vCPUs and 8 GB memory) by default. Charges apply if the free quota is exceeded. |
Scenario Template | Select "Vector: Video Search" and select Video Semantic Search. |
2. Data synchronization
For Full Data Source, select Object Storage OSS + API. You must pass Data Source Check before proceeding to the next step. Video data is uploaded through the selected data source to the AI Search Open Platform offline service for processing, and then imported into Vector Search Edition for index building. The detailed configuration parameters are as follows:
Parameter | Description |
OSS Endpoint | The internal endpoint of OSS in the same region as the instance, such as |
OSS Bucket | The name of the OSS bucket in the same region as the instance. |
OSS Path | Starts with |
Data Format | ha3. |
3. Field configuration
The system presets the following fields based on the video semantic search template and automatically imports fields from the full data source into the field list. The primary key field and the vector field are required. Other fields can be retained or deleted as needed.
Field Name | Field Type | Field Label | Description |
video_chunk_id | STRING | Primary Key | Clip primary key, unique across the table. |
embedding | FLOAT | Multimodal Embedding | Multi-value vector field with data source from the video field. |
video_id | STRING | Video Primary Key | Video ID. |
video | STRING | Video Link | The OSS link of the video, which requires data pre-processing configuration. |
index | INTEGER | Clip Count | Clip sequence number. |
title | TEXT | Clip Title | Clip title. |
title_str | STRING | Clip Title - String | Clip title (string). |
transcript | TEXT | Subtitle | Clip subtitle. |
transcript_str | STRING | Subtitle - String | Clip subtitle (string). |
video_summary | TEXT | Clip Summary | Clip content summary. |
video_summary_str | STRING | Clip Summary - String | Clip content summary (string). |
snapshots | STRING | - | Sequence number, link, and time of clip keyframes. |
tags | STRING | Video Tags | Clip tags. |
start_time | FLOAT | - | Clip start time. |
end_time | FLOAT | - | Clip end time. |
sub_ids | STRING | - | Clip primary keys corresponding to the full video. |
type | STRING | - | Full video or video clip. |
video_name | STRING | - | Video name. |
Configure the data source for the video link field (video): Click Configure for the data source of the video field, set the data type to "Video" and the data source to "OSS Object Storage", and fill in the OSS Endpoint, OSS Bucket, and OSS Storage Path. The OSS Storage Path is used to store data processed by the AI Search Open Platform offline service.
Configure data processing for the vector field (embedding): Click Modify for the embedding field. The data processing template is "Video Semantic Search", which executes three services in the following order:
Processing Order | Service Type | Model | Output Dimensions | Description |
1 | Video Segmentation | ops-video-segment-001 | - | Understands and analyzes video and audio, segments the video into content-related clips, and extracts keyframes. |
2 | Video Summarization | ops-video-summarize-001 | - | Generates summaries, titles, and tags for video clips based on a visual large language model. |
3 | Multimodal Embedding | qwen3-vl-embedding | 2560 | Vectorizes video content for vector search. |
Video Segmentation and Video Summarization are fixed services and cannot be modified. For Multimodal Embedding, you can select a multimodal embedding model supported by the AI Search Open Platform. Data processing requires configuring the workspace, API key, and connection endpoint in API Key Configuration. For more information, see Manage API keys.
Video semantic search and video visual search both belong to the "Vector: Video Search" scenario template, but differ in preset fields and vector dimensions: video semantic search generates vectors using the multimodal embedding model qwen3-vl-embedding with 2560 dimensions.
4. Index schema
The system automatically builds indexes with the same name for fields other than the vector field. The vector index must be manually configured. In Vector Index, the index name is embedding and the configuration is as follows:
Parameter | Value |
Primary Key Field | video_chunk_id |
Vector Field | embedding |
Namespace | Optional. If configured, you must specify the namespace during queries. |
Vector Dimensions | 2560 |
Distance Type | InnerProduct |
Real-time Index | true |
Vector Index Algorithm | HNSW |
The system has automatically filled in the vector index parameters. If you have no special requirements, click OK to complete the configuration.
5. Confirm creation
After the index configuration is complete, click Confirm Creation. The system automatically builds the index. After index building is complete, the index is automatically enabled in the current instance.
View change history
In Instances > Change History > Data Source Changes, you can view all FSMs for table creation, index addition, and index rebuilding. After all tasks are complete, the engine setup is finished and you can start query testing.
Test a query
In the left-side navigation pane, select Vector Management > Query Test. Take Developer Mode as an example for testing. Set Table Name and Query Method, enter query parameters on the left, and click Search to view results on the right.
The inference query (/vector-service/inference-query) for video semantic search supports fusion queries, which allow you to pass both text and images for combined text-image search. Example:
{
"indexName": "embedding",
"modal": "fusion",
"topK": 3,
"contentType": "text,image_uri",
"contents": ["hello", "https://example.com/image.png"],
"includeVector": false
}The Prediction query for video semantic search does not support video_uri type queries.
For more testing features, see Query testing.