GITBOOK-56: No subject

doc/update-ollama-cn
joshua 2024-02-28 10:46:02 +00:00 committed by gitbook-bot
parent 0e7357d002
commit 0d222e7fdf
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF
2 changed files with 31 additions and 0 deletions

View File

@ -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

View File

@ -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
```