vdb/README.md
2026-02-05 19:09:37 +08:00

54 lines
1.2 KiB
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.

# vdb
## 字段类型
```
[
# 1. 主键字段 (必选): INT64 类型非自增手动指定ID以便与业务系统关联
{
"name": "id",
"type": DataType.INT64,
"is_primary": True,
"auto_id": False
},
# 2. 向量字段 (核心): 存储 CLIP 提取的特征768 维
{
"name": "video_embedding",
"type": DataType.FLOAT_VECTOR,
"dim": 768
},
# 3. 变长字符串: 存储视频存储路径,需指定最大长度
{
"name": "file_path",
"type": DataType.VARCHAR,
"max_length": 512
},
# 4. 浮点数: 存储评估得分 (如 VBench 的综合分数)
{
"name": "quality_score",
"type": DataType.FLOAT
},
# 5. 布尔值: 标记是否已完成人工复核
{
"name": "is_reviewed",
"type": DataType.BOOL
},
# 6. 整数: 存储视频的时长(秒)
{
"name": "duration_sec",
"type": DataType.INT32
},
# 7. JSON 字段: 存储非结构化的元数据(如 VBench 的 16 个子维度细节)
# Milvus 2.4+ 支持 JSON 动态解析查询
{
"name": "meta_data",
"type": DataType.JSON
}
]
```