to-weaviate
to-weaviate migrates collections from another vector database into
Weaviate.
The Weaviate team maintains it.
Supported sources
| Source | Deployments | Inspect command | Guide |
|---|---|---|---|
| Chroma | Chroma Cloud, distributed Chroma, single-node Chroma, a Chroma directory on disk | inspect chroma |
Chroma |
Features
- Read-only on the source. No command writes to it or deletes from it.
- A plan you review first.
inspectdraftsplan.yaml; nothing reaches Weaviate until you runcopyorsync. - Safe to rerun. A rerun of
copycontinues at the page where the last run stopped. Each object's UUID comes from its source id, so a rerun writes no duplicate. - Verified.
verifycompares counts, ids, and a sample of records with their vectors, and writes a report. - No secrets in output. Keys come from the environment, and no output or file holds one.
Requirements & Installation
- Python 3.10 or newer.
- A Weaviate instance: a Weaviate Cloud
cluster, or a server you run yourself.
A free (sandbox) Weaviate Cloud cluster accepts only the index type
hfresh; for one, runinspectwith--index hfresh. Weaviate target has the details. The server must run Weaviate 1.27.0 or later; see Supported Weaviate versions. - Read access to the source. See the source guide.
pip install to-weaviate
To run it without installing, use uv:
uvx to-weaviate --help
Each GitHub release also carries the wheel and the sdist of that version.
Migration steps
flowchart LR
inspect["inspect #60;source#62;"] --> review["review plan.yaml"] --> check --> copy --> sync["sync --prune"] --> verify
copy -. "run again to resume" .-> copy
- Run
to-weaviate inspect <source>. It reads the source and writes a draftplan.yaml. - Review the plan. Edit the names, types or vector settings you want to change.
- Run
to-weaviate check. It validates the plan against Weaviate and creates nothing. - Run
to-weaviate copy. It creates the collections and copies the records. If it stops, run it again to resume. Some sources need the writes to them paused whilecopyandsyncrun; the "Writes during a copy" section of each source guide says which. - Optional: run
to-weaviate syncto write the records that are new or changed since the copy. Run it as often as you like before the last step. - Stop the writes to the source, then run
to-weaviate sync --prune. It writes the records that are new or changed since the last run and deletes the objects whose source record is gone. - Run
to-weaviate verify. It compares Weaviate with the source and writesreport.md. When every check passes, switch your application to Weaviate.
Run to-weaviate status at any time to see the copy progress. It needs no
credentials. Every command uses one migration directory, ./.to-weaviate
unless you pass --dir.
Example
This example migrates one collection from Chroma Cloud to Weaviate Cloud. It assumes:
- The Chroma Cloud collection is
support-articles: 5,000 records with 1536-dimension vectors. - The Weaviate Cloud cluster is not a free (sandbox) cluster.
- The application does not write to the collection while
copyandsyncrun. Chroma Cloud needs that. - You run every command in one directory, and the settings are in a
.envfile there or exported.
For a server you run yourself, the Chroma guide and Weaviate target list the settings.
Configure
CHROMA_API_KEY=<Chroma Cloud API key>
WEAVIATE_URL=https://my-cluster.weaviate.cloud
WEAVIATE_API_KEY=<Weaviate API key>
WEAVIATE_URL and WEAVIATE_API_KEY are the URL and an API key of the
Weaviate Cloud cluster. Both are in the
Weaviate Cloud console. CHROMA_API_KEY
is a Chroma Cloud API key. The Chroma guide lists
the other Chroma settings.
Inspect and review the plan
$ to-weaviate inspect chroma --collection support-articles
Inspecting Chroma at https://api.trychroma.com
support-articles -> Support_articles
count: 5000
dimension: 1536
distance: cosine
vectors: default (keep, no vectorizer)
Decisions:
support-articles (vector_mode): No Weaviate vectorizer matches the source embedding function. Either supply query vectors from the application, or run inspect with --vectors embed to re-vectorize the documents in Weaviate.
Review .to-weaviate/plan.yaml, then run to-weaviate check.
Each entry of .to-weaviate/plan.yaml maps one source collection to one
Weaviate collection. An excerpt:
collections:
- source:
name: support-articles
count: 5000
dimension: 1536
target:
name: Support_articles
vectors:
- name: default
mode: keep
distance: cosine
properties:
- source_key: product
name: product
type: text
- source_key: views
name: views
type: int
- source_key: verified
name: verified
type: boolean
The plan file lists the edits you can make.
Check and copy
$ to-weaviate check
Checking the target at https://my-cluster.weaviate.cloud
No errors, 0 warnings.
$ to-weaviate copy
Copying support-articles to Support_articles
Copied support-articles: 5000 records, 0 rejects
support-articles -> Support_articles: copied 5000 of 5000, rejects 0, done
Total: 5000 records
Sync, verify and switch
Stop the writes to the source. Here the source gained 5 records, 5 changed and 5 were deleted after the copy:
$ to-weaviate sync --prune
Syncing support-articles to Support_articles
Synced support-articles to Support_articles: 10 records written, 4990 unchanged, 0 rejects, 5 stale, 5 deleted
support-articles -> Support_articles: copied 10, unchanged 4990, rejects 0, stale 5, deleted 5
Total: copied 10, unchanged 4990, rejects 0, stale 5, deleted 5
$ to-weaviate verify
Verifying support-articles in Support_articles
PASS Support_articles count: source count 5000, target count 5000
PASS Support_articles ids: missing 0, extra 0
PASS Support_articles records: sampled 300, compared 300, rejects skipped 0, differing 0
Now switch your application to Weaviate. Do not run sync against this
target afterwards: the source no longer holds the current data.
Commands
| Command | What it does |
|---|---|
inspect <source> |
Reads the source collections and writes inspect.json and a draft plan.yaml. |
check |
Validates plan.yaml against Weaviate: names, types, vectorizer modules, provider keys, existing collections. Creates nothing. |
copy |
Creates the collections and copies the records. Run it again to resume or to copy new records. |
sync |
Writes the records that are new or changed since the copy. With --prune, deletes the objects whose source record is gone. |
verify |
Compares counts, ids and a sample of records, and writes report.md and report.json. |
status |
Shows the progress of each collection from the migration directory. |
Every command takes --dir and --json. With --json, stdout holds one
JSON document. The exit code names the class of failure, with and without
--json:
| Exit code | Meaning |
|---|---|
| 0 | Success |
| 1 | Rejected records, a failed verification, or stale objects above 10% that sync --prune left alone |
| 2 | A usage, plan, state or directory error, a request the source refused, or an unconfirmed first run into a collection that holds objects sync --prune would delete |
| 3 | A missing or refused credential |
| 4 | An unreachable server, a source that is compacting or still written to, or a deletion Weaviate did only partly |
| 5 | An internal error |
Commands lists every error code.
Documentation
| Page | Contents |
|---|---|
| Commands | The options every source shares, the migration directory, resuming, sync and the cutover, rejects, JSON output, error codes |
| The plan file | The fields of plan.yaml, the edits it allows, vector modes, index and quantizer settings |
| Weaviate target | WEAVIATE_* settings, Weaviate Cloud and self-hosted servers, vectorizer keys |
| Sources | One guide per source: settings, options, data mapping, limits |
| Development | Architecture, adding a source, testing, releases |
The Weaviate documentation explains how to search the migrated collections.
Getting help
Ask in the Weaviate forum, or report a bug in GitHub issues.
Contributing
See CONTRIBUTING.md.
License
BSD-3-Clause. See LICENSE.
Metadata
Release files for to-weaviate 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| to_weaviate-0.2.0.tar.gz | 739.2 kB | With provenance | Details for to_weaviate-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| to_weaviate-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for to_weaviate-0.2.0-py3-none-any.whl |
Total release size: 850.9 kB
Release files / to_weaviate-0.2.0.tar.gz
| Download URL | to_weaviate-0.2.0.tar.gz |
|---|---|
| Size | 739.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf4dd813b2175094b52cef90f4ca7c231c587cb7490dda2accd1e66c83c4c9af
|
|
BLAKE2b-256 checksum How to use checksums |
d6984ba46a5c452919a99f80ad9503d9242fa4595ac4d77a5d9125a514f1d525
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / to_weaviate-0.2.0-py3-none-any.whl
| Download URL | to_weaviate-0.2.0-py3-none-any.whl |
|---|---|
| Size | 111.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
800ac7c811741bcbafdd334faa08abf58a3a33e53ebef06b1f453425140dff33
|
|
BLAKE2b-256 checksum How to use checksums |
4567651d07351a0c7944b4e32cd7f8dca77370c8d8bf2b38e3178d5920373a6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logSecurity for to-weaviate 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for to_weaviate-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.