migrate_pgvector_to_sqlite
migrate_pgvector_to_sqlite
Create a SQLite .swsearch file from a pgvector collection’s schema and
configuration.
This method currently creates the SQLite schema and copies configuration only —
chunk data is not transferred. Full chunk migration from pgvector to SQLite
is planned for a future release. The returned chunks_migrated count will be 0.
Parameters
connection_string
PostgreSQL connection string.
collection_name
Name of the source pgvector collection.
output_path
Output path for the .swsearch file. The .swsearch extension is appended
automatically if not present.
batch_size
Number of chunks to fetch per batch.
Returns
dict[str, Any] — Migration statistics with source, target, chunks_migrated,
errors, and config fields.