Skip to content

Commit

Permalink
dad tagging to the Document after sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Jul 11, 2024
1 parent 5dd42f9 commit 44b2a7f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions app/Jobs/GetWebContentJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -129,6 +130,7 @@ public function handle(): void
$this->batch()->add([
new VectorlizeDataJob($DocumentChunk),
new SummarizeDocumentJob($document),
new TagDocumentJob($document),
]);

$page_number++;
Expand Down
1 change: 0 additions & 1 deletion app/Models/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion app/Models/Report.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public function message(): BelongsTo
return $this->belongsTo(Message::class);
}


public function chat(): BelongsTo
{
return $this->belongsTo(Chat::class);
Expand Down
4 changes: 2 additions & 2 deletions config/llmdriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 44b2a7f

Please sign in to comment.