Skip to content

Commit de98b35

Browse files
authored
Reorganize sections for "Data Types" doc. (#53)
1 parent fe59040 commit de98b35

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

docs/docs/core/data_types.mdx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ In CocoIndex, all data processed by the flow have a type determined when the flo
99

1010
This makes schema of data processed by CocoIndex clear, and easily determine the schema of your index.
1111

12-
## Basic Types
12+
## Data Types
13+
14+
### Basic Types
1315

1416
This is the list of all basic types supported by CocoIndex:
1517

@@ -30,11 +32,6 @@ For some types, CocoIndex Python SDK provides annotated types with finer granula
3032
When defining [custom functions](/docs/core/custom_function), use the specific types as type annotations for arguments and return values.
3133
So CocoIndex will have information about the specific type.
3234

33-
## Composite Types
34-
35-
Note: CocoIndex will support functions taking composite types as arguments or returning composite types soon.
36-
We'll update this section with corresponding Python types by then.
37-
3835
### Struct
3936

4037
A struct has a bunch of fields, each with a name and a type.
@@ -45,7 +42,14 @@ A table has a collection of rows, each of which is a struct with specified schem
4542

4643
The first field of a table is always the primary key.
4744

48-
## Indexable Types
45+
:::note
46+
47+
CocoIndex will support functions taking struct and table types as arguments or returning composite types soon.
48+
We'll update this section with corresponding Python types by then.
49+
50+
:::
51+
52+
## Types to Create Indexes
4953

5054
### Key Types
5155

0 commit comments

Comments
 (0)