Danielsz's picture
deploy
16e8be2
Raw
History Blame Contribute Delete
537 Bytes
"""
Management command to vectorize interview phrases into Qdrant.
Usage: python manage.py vectorize
"""
from django.core.management.base import BaseCommand
from interview.vectorize_service import vectorize_collection
class Command(BaseCommand):
help = "Vectorize interview phrases into the Qdrant 'entrevista_itca' collection."
def handle(self, *args, **options):
self.stdout.write("Starting vectorization...")
vectorize_collection()
self.stdout.write(self.style.SUCCESS("Vectorization complete!"))