Skip to content

Commit

Permalink
fix stan
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed May 1, 2024
1 parent 28b840e commit 49b2535
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 0 additions & 2 deletions app/Domains/Sources/WebSearch/Drivers/BraveSearchClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
]);
Expand Down
5 changes: 5 additions & 0 deletions app/Jobs/GetWebContentJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

}
}
3 changes: 2 additions & 1 deletion app/Jobs/KickOffWebSearchCreationJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <<<PROMPT
The user is asking to search the web but I want you to review the query and clean it up so I can pass
Expand All @@ -49,6 +49,7 @@ public function handle(): void

$search = $response->content;

/** @phpstan-ignore-next-line */
$results = WebSearchFacade::search($search, [
'count' => 5,
]);
Expand Down

0 comments on commit 49b2535

Please sign in to comment.