main branch.
Each experiment gets its own writable table history.
For example, you can generate and compare embeddings from two text embedding
models on the given table:
The branches share a logical table, but each has its own schema and history.
The original table handle still points to
main. LanceDB does not have a
process-wide current branch.
Install the model packages, then download the nomic-embed-text model from Ollama
(or any other model you prefer):
Agent prompt
The vector dimensions may differ because the columns live on separate branches.
Use a different column name for each model. Within an experiment, use the same
model for the stored text and the search queries.
Apply the winning experiment to main
The branch experiments leave you with the results side by side, and they
deliberately never touch main. Once you’ve picked a winner, apply it to
main yourself by rerunning that experiment’s validated transformation
directly against the main table. Rerunning the reviewed operation is the
reliable path on both OSS and Enterprise: it replays exactly the transformation
you validated on the branch, and it works the same regardless of how the branch
evolved.
Suppose nomic-embed-text wins. Rerun the same Nomic embedding transformation
you validated on embed-nomic against main in batches, then call
table.optimize() on OSS. Verify a bounded vector search on main, and keep
the losing branch around until you’re confident in the result.
See Branches for more on how branches, versions, and tags
relate.
More experiments you can run
Swapping embedding models on a branch while working with agents is only one example of what you can do with the LanceDB skill. The table below shows other experiments you can run with the skill.
For each experiment, ask the agent to state the hypothesis, use a fixed
evaluation set, report the comparison, and, if you want, work on an alternate
branch that’s isolated from
main until you decide you want the new derived
column in main.
Once you’ve chosen a winner, rerun that validated transformation to ingest it into main
yourself, on either LanceDB OSS or Enterprise. See our documentation on branches
for more information.