diff --git a/app/Domains/Sources/WebSearch/Drivers/BraveSearchClient.php b/app/Domains/Sources/WebSearch/Drivers/BraveSearchClient.php index 26fc5c69..ba54e94b 100644 --- a/app/Domains/Sources/WebSearch/Drivers/BraveSearchClient.php +++ b/app/Domains/Sources/WebSearch/Drivers/BraveSearchClient.php @@ -12,8 +12,6 @@ class BraveSearchClient extends BaseSearchClient public function search(string $search, array $options = []): SearchResponseDto { - //$is_news_breaking = data_get($options, "is_news_breaking", false); - $response = $this->getClient()->get('web/search', [ 'q' => urlencode($search), ]); diff --git a/app/Jobs/GetWebContentJob.php b/app/Jobs/GetWebContentJob.php index 488b485e..dc44048d 100644 --- a/app/Jobs/GetWebContentJob.php +++ b/app/Jobs/GetWebContentJob.php @@ -36,5 +36,10 @@ public function handle(): void return; } + //use GetPage to get the page + //still working on best response right now it is PDF :( + //then make chunks out of that for the document + //and put those onto a batch job like @see app/Domains/Documents/Transformers/PdfTransformer.php + } } diff --git a/app/Jobs/KickOffWebSearchCreationJob.php b/app/Jobs/KickOffWebSearchCreationJob.php index a309926a..25410b15 100644 --- a/app/Jobs/KickOffWebSearchCreationJob.php +++ b/app/Jobs/KickOffWebSearchCreationJob.php @@ -30,7 +30,7 @@ public function __construct(public Document $document) public function handle(): void { //use the prompt to query the web - $content = $this->document->content; + $content = $this->document->summary; $prompt = <<content; + /** @phpstan-ignore-next-line */ $results = WebSearchFacade::search($search, [ 'count' => 5, ]);