diff --git a/docs/src/guides/tables.md b/docs/src/guides/tables.md index 12510941..4692aef0 100644 --- a/docs/src/guides/tables.md +++ b/docs/src/guides/tables.md @@ -84,7 +84,7 @@ This guide will show how to create tables, insert data into them, and update the const table = await con.createTable(tableName, data, { writeMode: WriteMode.Overwrite }) ``` -### From a Pandas DataFrame + ### From a Pandas DataFrame ```python import pandas as pd @@ -100,7 +100,9 @@ This guide will show how to create tables, insert data into them, and update the db["my_table"].head() ``` !!! info "Note" - Data is converted to Arrow before being written to disk. For maximum control over how data is saved, either provide the PyArrow schema to convert to or else provide a PyArrow Table directly. + Data is converted to Arrow before being written to disk. For maximum control over how data is saved, either provide the PyArrow schema to convert to or else provide a PyArrow Table directly. + + The **`vector`** column needs to be a [Vector](../python/pydantic.md#vector-field) (defined as [pyarrow.FixedSizeList](https://arrow.apache.org/docs/python/generated/pyarrow.list_.html)) type. ```python custom_schema = pa.schema([ diff --git a/python/lancedb/table.py b/python/lancedb/table.py index 9333c424..44decda7 100644 --- a/python/lancedb/table.py +++ b/python/lancedb/table.py @@ -437,6 +437,8 @@ class Table(ABC): the table vector_column_name: str The name of the vector column to search. + + The vector column needs to be a pyarrow fixed size list type *default "vector"* query_type: str *default "auto"*.