-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from supabase-community/or/docs
Creates a Docs site
- Loading branch information
Showing
21 changed files
with
316 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Contributing | ||
|
||
`vec2pg` is open source software. External contributions are welcome. Note that we have a high bar for testing. | ||
|
||
Before opening a PR, please [create an issue](https://github.com/supabase-community/vec2pg/issues/new/choose) in GitHub to discuss and approve the change you're interested in making. | ||
|
||
To run the tests you will need: | ||
|
||
- Python >= 3.8 | ||
- Docker | ||
- [Pinecone API key](https://docs.pinecone.io/guides/get-started/authentication#find-your-pinecone-api-key) - pinecone does not support a local mode, so we have to hit their service during testing | ||
|
||
The Pinecone API key should be stored as an environment variable `PINECONE_API_KEY` | ||
|
||
Run the tests | ||
``` | ||
poetry run pytest | ||
``` | ||
|
||
Run the pre-commit hooks | ||
``` | ||
poetry run pre-commit run --all | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# `vec2pg` | ||
|
||
<p> | ||
<a href="https://github.com/supabase-community/vec2pg/actions"> | ||
<img src="https://github.com/supabase-community/vec2pg/workflows/tests/badge.svg" alt="Test Status" height="18"> | ||
</a> | ||
<a href="https://github.com/supabase-community/vec2pg/actions"> | ||
<img src="https://github.com/supabase-community/vec2pg/workflows/pre-commit/badge.svg" alt="Pre-commit Status" height="18"> | ||
</a> | ||
<a href="https://www.python.org/downloads/"><img src="https://img.shields.io/badge/python-3.8+-blue.svg" alt="Python version" height="18"></a> | ||
<a href=""><img src="https://img.shields.io/badge/postgresql-15+-blue.svg" alt="PostgreSQL version" height="18"></a> | ||
</p> | ||
<p> | ||
<a href="https://github.com/supabase-community/vec2pg/blob/master/LICENSE"><img src="https://img.shields.io/pypi/l/markdown-subtemplate.svg" alt="License" height="18"></a> | ||
<a href="https://badge.fury.io/py/alembic_utils"><img src="https://badge.fury.io/py/vec2pg.svg" alt="PyPI version" height="18"></a> | ||
<a href="https://github.com/psf/black"> | ||
<img src="https://img.shields.io/badge/code%20style-black-000000.svg" alt="Codestyle Black" height="18"> | ||
</a> | ||
<a href="https://pypi.org/project/vec2pg/"><img src="https://img.shields.io/pypi/dm/vec2pg.svg" alt="Download count" height="18"></a> | ||
</p> | ||
|
||
--- | ||
|
||
**Documentation**: <a href="https://supabase-community.github.io/vec2pg" target="_blank">https://supabase-community.github.io/vec2pg</a> | ||
|
||
**Source Code**: <a href="https://github.com/supabase-community/vec2pg" target="_blank">https://github.com/supabase-community/vec2pg</a> | ||
|
||
--- | ||
|
||
`vec2pg` is a CLI tool for migrating data from third-party vector databases to [Supabase](https://supabase.com). | ||
|
||
|
||
Supported data sources include: | ||
|
||
- [Pinecone](pinecone.md) | ||
- [Qdrant](qdrant.md) | ||
- [[Vote for others]](https://github.com/supabase-community/vec2pg/issues/6) | ||
|
||
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 | ||
|
||
``` | ||
vec2pg --help | ||
``` | ||
|
||
``` | ||
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 │ | ||
╰────────────────────────────────────────────────────────────────────────╯ | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Installation | ||
|
||
`vec2pg` is a simple package [available on PYPI](https://pypi.org/project/vec2pg/) | ||
|
||
Requirements: | ||
|
||
- Python >= 3.8 | ||
|
||
### From PYPI | ||
|
||
Use your preferred package manager to add the package to your local enviroment. | ||
|
||
Using pip | ||
```sh | ||
pip install vec2pg | ||
``` | ||
|
||
Using poetry | ||
```sh | ||
poetry add vec2pg | ||
``` |
Oops, something went wrong.