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

Wipe detects storage type #1772

Merged
merged 2 commits into from Mar 20, 2024
Merged

Wipe detects storage type #1772

merged 2 commits into from Mar 20, 2024

Conversation

dbzoo
Copy link
Contributor

@dbzoo dbzoo commented Mar 20, 2024

Improved the make wipe command to intelligently detect the database mode and perform the appropriate actions.

A pure file system based profile setting-fs.yaml

nodestore:
  database: simple

vectorstore:
  database: chroma

Wiping local storage.

% PGPT_PROFILES=fs make wipe
15:25:49.072 [INFO    ] private_gpt.settings.settings_loader - Starting application with profiles=['default', 'fs']
 - Deleted /Users/brettengland/Development/privateGPT/local_data/private_gpt/docstore.json
 - Deleted /Users/brettengland/Development/privateGPT/local_data/private_gpt/index_store.json
Wiping /Users/brettengland/Development/privateGPT/local_data/private_gpt/chroma_db...
 - Deleted /Users/brettengland/Development/privateGPT/local_data/private_gpt/chroma_db/chroma.sqlite3

All data is stored in the database.

nodestore:
  database: postgres

vectorstore:
  database: postgres

Wiping the postgres database tables.

PGPT_PROFILES=brett make wipe
15:21:58.503 [INFO    ] private_gpt.settings.settings_loader - Starting application with profiles=['default', 'brett']
Table private_gpt.data_docstore dropped.
Table private_gpt.data_indexstore dropped.
Table private_gpt.data_embeddings dropped.

TODO: qdrant storage

@imartinez imartinez merged commit c2d6948 into zylon-ai:main Mar 20, 2024
6 checks passed
@dbzoo dbzoo deleted the feat-expand-wipe branch March 20, 2024 20:41
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.

None yet

2 participants