Skip to content

Commit 6afd99a

Browse files
Merge pull request #3356 from milvus-io/update-docs
update docs
2 parents cbe6f48 + 5e0ccd0 commit 6afd99a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

site/en/userGuide/schema/best-practices-for-array-of-structs.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
id: best-practices-for-array-of-structs.md
33
title: "Data Model Design with an Array of Structs"
44
summary: "Modern AI applications, especially in the Internet of Things (IoT) and autonomous driving, typically reason over rich, structured events: a sensor reading with its timestamp and vector embedding, a diagnostic log with an error code and audio snippet, or a trip segment with location, speed, and scene context. These require the database to natively support the ingestion and search of nested data."
5+
beta: Milvus 2.6.4+
56
---
67

78
# Data Model Design with an Array of Structs
@@ -143,6 +144,8 @@ To start, we need to initialize the schema for a caption Struct, a front_cars St
143144
- Initialize the schema for the Caption Struct.
144145

145146
```python
147+
from pymilvus import MilvusClient, DataType
148+
146149
client = MilvusClient("http://localhost:19530")
147150

148151
# create the schema for the caption struct

0 commit comments

Comments
 (0)