fix vector python embedding
This commit is contained in:
@@ -38,16 +38,22 @@ final class TagsRebuildCommand extends Command
|
||||
$io->writeln('Tags: ' . (string) ($export['tags'] ?? 0));
|
||||
$io->writeln('Lines: ' . (string) ($export['lines'] ?? 0));
|
||||
$io->writeln('Bytes: ' . (string) ($export['bytes'] ?? 0));
|
||||
$io->newLine();
|
||||
$io->writeln('<comment>2/2 Building vector_tags.index</comment>');
|
||||
$io->writeln('If this step fails, check the embedding model cache or set RETRIEX_EMBEDDING_MODEL_PATH.');
|
||||
|
||||
$this->builder->build();
|
||||
|
||||
$io->writeln('<info>2/2 Built vector_tags.index</info>');
|
||||
$io->success('Tag rebuild completed.');
|
||||
|
||||
return Command::SUCCESS;
|
||||
} catch (\Throwable $e) {
|
||||
$io->error($e->getMessage());
|
||||
|
||||
if ($output->isVerbose() && $e->getPrevious() !== null) {
|
||||
$io->writeln('<comment>Previous exception:</comment> ' . $e->getPrevious()->getMessage());
|
||||
}
|
||||
|
||||
return Command::FAILURE;
|
||||
}
|
||||
}
|
||||
@@ -71,4 +77,4 @@ final class TagsRebuildCommand extends Command
|
||||
throw new \RuntimeException('Tag export returned invalid statistics.');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user