Lines Matching refs:options

24     protected function setup(Options $options)
26 parent::setup($options);
28 $options->setHelp(
33 $options->registerOption(
40 $options->registerCommand(
44 $options->registerOption(
52 $options->registerCommand('maintenance', 'Run storage maintenance. Refer to the documentation for details.');
54 $options->registerCommand('similar', 'Search for similar pages');
55 $options->registerArgument('query', 'Look up chunks similar to this query', true, 'similar');
57 $options->registerCommand('ask', 'Ask a question');
58 $options->registerArgument('question', 'The question to ask', true, 'ask');
60 $options->registerCommand('chat', 'Start an interactive chat session');
62 $options->registerCommand('models', 'List available models');
64 $options->registerCommand('info', 'Get Info about the vector storage and other stats');
66 $options->registerCommand('split', 'Split a page into chunks (for debugging)');
67 $options->registerArgument('page', 'The page to split', true, 'split');
69 $options->registerCommand('page', 'Check if chunks for a given page are available (for debugging)');
70 $options->registerArgument('page', 'The page to check', true, 'page');
71 $options->registerOption('dump', 'Dump the chunks', 'd', false, 'page');
73 $options->registerCommand('tsv', 'Create TSV files for visualizing at http://projector.tensorflow.org/' .
75 $options->registerArgument('vector.tsv', 'The vector file', false, 'tsv');
76 $options->registerArgument('meta.tsv', 'The meta file', false, 'tsv');
80 protected function main(Options $options)
82 parent::main($options);
84 $model = $options->getOpt('model');
91 switch ($options->getCmd()) {
93 $this->createEmbeddings($options->getOpt('clear'));
99 $this->similar($options->getArgs()[0]);
102 $this->ask($options->getArgs()[0]);
111 $this->split($options->getArgs()[0]);
114 $this->page($options->getArgs()[0], $options->getOpt('dump'));
120 $args = $options->getArgs();
126 echo $options->help();