
LanceDB Upsert
CertifiedUpsert vector records into a LanceDB table
LanceDB Upsert
Upsert vector records into a LanceDB table
Inserts or updates vector records and metadata into a LanceDB table. Accepts inline record lists or Kestra internal storage files.
type: io.kestra.plugin.lancedb.UpsertExamples
Upsert embeddings from an upstream task output file
id: lancedb_upsert
namespace: company.team
tasks:
- id: upsert
type: io.kestra.plugin.lancedb.Upsert
uri: "s3://my-bucket/lancedb"
table: documents
from: "{{ outputs.embed.uri }}"
storageOptions:
aws_access_key_id: "{{ secret('AWS_ACCESS_KEY_ID') }}"
aws_secret_access_key: "{{ secret('AWS_SECRET_ACCESS_KEY') }}"
region: "us-east-1"
Upsert inline vector records with metadata
id: lancedb_upsert_inline
namespace: company.team
tasks:
- id: upsert
type: io.kestra.plugin.lancedb.Upsert
uri: "/tmp/lancedb"
table: documents
batchSize: 100
from:
- id: "doc1"
vector: [0.05, 0.61, 0.76, 0.74]
category: "docs"
title: "Getting Started"
- id: "doc2"
vector: [0.19, 0.81, 0.75, 0.11]
category: "api"
title: "API Reference"
Properties
from *object
Records to upsert
Data source, either an inline list of maps or a Kestra storage URI to an ION/JSON file. Each record should contain a 'vector' list of numbers and optional metadata fields.
table *string
Table name
The name of the LanceDB table to upsert records into.
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
{}1150batchSize integerstring
1000Batch size
Number of records written per batch, between 1 and 100000 (default: 1000).
storageOptions object
Storage options
Key-value configuration options for cloud object storage (e.g. AWS access key, secret key, region, endpoint URL).
Outputs
count integer
0Record count
The total count of records successfully upserted into the table.