JingsongLi commented on code in PR #8239: URL: https://github.com/apache/paimon/pull/8239#discussion_r3412591556
########## docs/docs/multimodal-table/global-index.mdx: ########## @@ -127,6 +127,36 @@ Supported vector index options: | `<index-type>.hnsw.ef-construction` | `150` | HNSW construction search width for `ivf-hnsw-flat` and `ivf-hnsw-sq`. | | `<index-type>.hnsw.max-level` | `7` | Maximum HNSW level for `ivf-hnsw-flat` and `ivf-hnsw-sq`. | +**Per-Field Options** + +The options above can also be set at the table level (in `TBLPROPERTIES`), where they are shared +by every vector column of the same index type. When a table has multiple vector columns, you can +scope an option to a single column with `<index-type>.fields.<field-name>.<option>`. The field-level +form takes precedence over the column-agnostic `<index-type>.<option>` for that column. Use the +stored table column name exactly as `<field-name>`: + +```sql +CREATE TABLE my_table ( + id INT, + title_embedding ARRAY<FLOAT>, + image_embedding ARRAY<FLOAT> +) TBLPROPERTIES ( + 'bucket' = '-1', + 'row-tracking.enabled' = 'true', + 'data-evolution.enabled' = 'true', + 'global-index.enabled' = 'true', + -- per-column dimensions + 'ivf-pq.fields.title_embedding.dimension' = '768', Review Comment: Maybe just `fields.title_embedding.dimension`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
