Skip to content

vec2pg

Test Status Pre-commit Status Python version PostgreSQL version

License PyPI version Codestyle Black Download count


Documentation: https://supabase-community.github.io/vec2pg

Source Code: https://github.com/supabase-community/vec2pg


vec2pg is a CLI for migrating data from third party vector databases to Supabase.

Supported data sources include:

The general flow involves passing an API key for your vector database, a Postgres connection string, and a reference to the collection you want to copy. vec2pg then presents a progress bar in the terminal that you can use to monitor progress. Once complete, the vectors and any associated metadata are available in your Postgres instance at vec2pg.<collection_name>.

Usage

1
vec2pg --help
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 Usage: vec2pg [OPTIONS] COMMAND [ARGS]...                                                                               

╭─ Options ──────────────────────────────────────────────────────────────╮
│ --install-completion          Install completion for the current shell.│
│ --show-completion             Show completion for the current shell    │
│ --help                        Show this message and exit.              │
╰────────────────────────────────────────────────────────────────────────╯
╭─ Commands ─────────────────────────────────────────────────────────────╮
│ pinecone                      Move data from Pinecone to Supabase      │
│ qdrant                        Move data from Qdrant to Supabase        │
╰────────────────────────────────────────────────────────────────────────╯