You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
488 B
11 lines
488 B
<?php |
|
require '/var/www/html/vendor/autoload.php'; |
|
$app = require '/var/www/html/bootstrap/app.php'; |
|
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap(); |
|
|
|
$start = microtime(true); |
|
$service = $app->make(App\Services\ProjectSearchService::class); |
|
$result = $service->ask('carikan projek Pertamina', ['project'], 5); |
|
$elapsed = round(microtime(true) - $start, 2); |
|
echo "time={$elapsed}s results=".count($result['results'])."\n"; |
|
echo substr($result['answer'], 0, 200)."\n";
|
|
|