From 0d222e7fdf90c70c762f4bec21874e063e66dc70 Mon Sep 17 00:00:00 2001 From: joshua Date: Wed, 28 Feb 2024 10:46:02 +0000 Subject: [PATCH] GITBOOK-56: No subject --- en/SUMMARY.md | 1 + en/tutorials/vector-database-migrate-tool.md | 30 ++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 en/tutorials/vector-database-migrate-tool.md diff --git a/en/SUMMARY.md b/en/SUMMARY.md index 26afc39..f3b8594 100644 --- a/en/SUMMARY.md +++ b/en/SUMMARY.md @@ -78,6 +78,7 @@ * [OpenLLM](tutorials/model-configuration/openllm.md) * [LocalAI](tutorials/model-configuration/localai.md) * [Ollama](tutorials/model-configuration/ollama.md) +* [Vector Database Migrate Tool](tutorials/vector-database-migrate-tool.md) ## Community diff --git a/en/tutorials/vector-database-migrate-tool.md b/en/tutorials/vector-database-migrate-tool.md new file mode 100644 index 0000000..dfeeedc --- /dev/null +++ b/en/tutorials/vector-database-migrate-tool.md @@ -0,0 +1,30 @@ +# Vector Database Migrate Tool + +When you want to switch to another vector database, you can deactivate or delete the original vector database after switching. + +## How to use + +### Step: + +1. If you are starting from local source code, modify the environment variable in the `.env` file to the vector database you want to migrate to. + +For example: + +``` +VECTOR_STORE=qdrant +``` + +2. If you are starting from `docker compose`, modify the environment variable in the `docker-compose.yaml` file to the vector database you want to migrate to, both api and worker are all needed. + +For example: + +``` +# The type of vector store to use. Supported values are `weaviate`, `qdrant`, `milvus`. +VECTOR_STORE: qdrant +``` + +3. run the below command in your terminal or docker container + +``` +flask vdb-migrarte +```