fix vector python embedding

This commit is contained in:
team 1
2026-04-24 10:43:20 +02:00
parent 63b7011567
commit 4a8ffc5875
6 changed files with 233 additions and 174 deletions

View File

@@ -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.');
}
}
}
}