diff --git a/app/Jobs/GetWebContentJob.php b/app/Jobs/GetWebContentJob.php index 5d84f086..65c0afdf 100644 --- a/app/Jobs/GetWebContentJob.php +++ b/app/Jobs/GetWebContentJob.php @@ -21,6 +21,7 @@ use Illuminate\Support\Facades\Log; use Laravel\Pennant\Feature; use LlmLaraHub\LlmDriver\LlmDriverFacade; +use LlmLaraHub\TagFunction\Jobs\TagDocumentJob; class GetWebContentJob implements ShouldQueue { @@ -129,6 +130,7 @@ public function handle(): void $this->batch()->add([ new VectorlizeDataJob($DocumentChunk), new SummarizeDocumentJob($document), + new TagDocumentJob($document), ]); $page_number++; diff --git a/app/Models/Message.php b/app/Models/Message.php index b0cf3aad..bbe598eb 100644 --- a/app/Models/Message.php +++ b/app/Models/Message.php @@ -13,7 +13,6 @@ use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; -use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\HasOne; use Illuminate\Support\Facades\Bus; diff --git a/app/Models/Report.php b/app/Models/Report.php index bf80aeb6..66387d87 100644 --- a/app/Models/Report.php +++ b/app/Models/Report.php @@ -30,7 +30,6 @@ public function message(): BelongsTo return $this->belongsTo(Message::class); } - public function chat(): BelongsTo { return $this->belongsTo(Chat::class); diff --git a/config/llmdriver.php b/config/llmdriver.php index 3e76dfbe..91c1fa67 100644 --- a/config/llmdriver.php +++ b/config/llmdriver.php @@ -69,8 +69,8 @@ 'features' => [ 'pptx' => true, 'chatv2' => true, - 'reference_collection' => env('REFERENCE_COLLECTION', false), - 'date_range' => env('FEATURE_DATE_RANGE', false), + 'reference_collection' => env('FEATURE_REFERENCE_COLLECTION', false), + 'date_range' => env('FEATURE_DATE_RANGE', true), ], 'sources' => [ 'search_driver' => env('LARALAMMA_SEARCH_SOURCE', 'mock'),