Using BERTopic as a service to create easily interpretable topics.
Install poetry:
pip install poetryInstall project dependencies:
poetry install --no-rootActivate environment:
poetry shellInstall pre-commit:
pip install pre-commitInstall the git hook scripts:
pre-commit installLinux:
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64
sudo install minikube-darwin-amd64 /usr/local/bin/minikubemacOS:
brew install minikubeBuild image:
make buildStart the service:
make upStart all services except bertopic:
make up-devStop the service:
make downRun code checks:
make check-codeRun unit tests:
make unitRun integration tests:
make testStart the cluster:
minikube start
eval $(minikube -p minikube docker-env)Deploy the service on the local k8s:
kubectl apply -f k8s/namespace/ && kubectl apply -R -f k8s/Open MinIO Console:
minikube service minio-service -n bertopic --urlOpen Swagger:
minikube service bertopic-service -n bertopic --urlStop the cluster:
minikube stopDelete the cluster:
minikube delete --all