Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove separate vector database #720

Merged
merged 2 commits into from
Dec 13, 2023
Merged

Remove separate vector database #720

merged 2 commits into from
Dec 13, 2023

Conversation

mzur
Copy link
Member

@mzur mzur commented Dec 12, 2023

The default database is now used as vector database, too.

This partially undos #670.

References biigle/maia#150

  • Write a migration guide for the vector database (see here)
  • Test the migration guide
  • Update the biigle.de backup scripts https://github.com/biigle/biigle.de/pull/102
  • Update the biigle.de database host setup instructions as well as the backup/restore instructions

The default database is now used as vector database, too.

References biigle/maia#150
@mzur
Copy link
Member Author

mzur commented Dec 12, 2023

Migration guide:

  1. After step 4.1 of the updating instructions, do a vector database dump with the command:
     docker exec -i $(docker compose ps -q vector_database) \
         pg_dump --insert --on-conflict-do-nothing --data-only -U biigle -d biigle > biigle_vector_db.sql
    
  2. After step 6.1, run:
    cat biigle_vector_db.sql | docker exec -i $(docker compose ps -q database) \
         psql -U biigle biigle -
    
  3. Delete the vector_database Docker container and volume

@mzur mzur merged commit 9e18403 into master Dec 13, 2023
5 of 6 checks passed
@mzur mzur deleted the merge-pgvector branch December 13, 2023 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant