Skip to content

Commit

Permalink
Lint code [WEB-2934]
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhiltri committed Dec 19, 2024
1 parent 3abeaa5 commit a1d1664
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 9 deletions.
2 changes: 0 additions & 2 deletions app/Console/Commands/AI/ImageSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
use App\Console\Commands\BaseCommand;
use App\Services\EmbeddingService;
use App\Services\VectorSearchService;
use App\Models\Web\Vectors\ImageEmbedding;
use Illuminate\Support\Facades\DB;
use Symfony\Component\Console\Output\OutputInterface;


class ImageSearch extends BaseCommand
{
protected $signature = 'ai:search-image
Expand Down
1 change: 0 additions & 1 deletion app/Console/Commands/AI/UseCompletions.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use Illuminate\Support\Facades\Log;
use Symfony\Component\Console\Output\OutputInterface;


class UseCompletions extends BaseCommand
{
protected $signature = 'ai:chat
Expand Down
1 change: 0 additions & 1 deletion app/Models/Web/Vectors/ImageEmbedding.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use App\Models\BaseModel;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Pgvector\Laravel\Vector;
use Pgvector\Laravel\Distance as distance;

class ImageEmbedding extends BaseModel
{
Expand Down
6 changes: 2 additions & 4 deletions app/Services/EmbeddingService.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@
namespace App\Services;

use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\DB;
use App\Models\Web\Vectors\TextEmbedding;
use App\Models\Web\Vectors\ImageEmbedding;
use Pgvector\Laravel\Vector;
use Exception;

class EmbeddingService
{

const CONFIDENCE_THRESHOLD_CAPTION = 0.7;
const CONFIDENCE_THRESHOLD_TAG = 0.9;
public const CONFIDENCE_THRESHOLD_CAPTION = 0.7;
public const CONFIDENCE_THRESHOLD_TAG = 0.9;

protected string $connection = 'vectors';
protected array $config;
Expand Down
1 change: 0 additions & 1 deletion routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use App\Http\Controllers\ArtworkController;
use App\Http\Controllers\AssetController;


/*
|--------------------------------------------------------------------------
| API Routes
Expand Down

0 comments on commit a1d1664

Please sign in to comment.