
LanceDB TableCreate
CertifiedCreate a table in LanceDB
LanceDB TableCreate
Create a table in LanceDB
Initializes a new vector table in LanceDB with the specified vector dimension and distance metric.
type: io.kestra.plugin.lancedb.TableCreateExamples
Create a LanceDB table with 1536 dimensions and Cosine distance in S3
id: lancedb_table_create
namespace: company.team
tasks:
- id: create_table
type: io.kestra.plugin.lancedb.TableCreate
uri: "s3://my-bucket/lancedb"
table: documents
dimension: 1536
distanceMetric: COSINE
storageOptions:
aws_access_key_id: "{{ secret('AWS_ACCESS_KEY_ID') }}"
aws_secret_access_key: "{{ secret('AWS_SECRET_ACCESS_KEY') }}"
region: "us-east-1"
Create a table in local directory with L2 distance
id: lancedb_local_table
namespace: company.team
tasks:
- id: create_table
type: io.kestra.plugin.lancedb.TableCreate
uri: "/tmp/lancedb"
table: embeddings
dimension: 384
distanceMetric: L2
overwrite: true
Properties
dimension *integerstring
Vector dimension
The dimension size of vectors to be stored in the table (1 to 65536, e.g. 1536 for OpenAI embeddings, 384 for MiniLM).
table *string
Table name
The name of the LanceDB table to create.
uri *string
Database URI
Path or URI to the LanceDB database directory or endpoint, e.g. local directory '/tmp/lancedb', cloud object store 's3://my-bucket/lancedb', 'gs://my-bucket/lancedb', 'az://my-bucket/lancedb'.
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150distanceMetric string
COSINECOSINEL2DOTDistance metric
Distance metric for vector comparisons: COSINE (cosine distance, recommended for normalized embeddings), L2 (squared Euclidean distance), or DOT (dot product distance). Default is COSINE.
overwrite booleanstring
falseOverwrite table if it already exists
Whether to overwrite the table if it already exists (default: false).
storageOptions object
Storage options
Key-value configuration options for cloud object storage (e.g. AWS access key, secret key, region, endpoint URL).
Outputs
created boolean
Created status
Whether a new table was created (false if already existed and overwrite was false).
dimension integer
Vector dimension
The dimension size of the vectors.
distanceMetric string
COSINEL2DOTDistance metric
The distance metric configured on the table.
table string
Table name
The name of the table that was created.