Skip to content

Commit

Permalink
Step 1 of RFP reply in place, solutions pulled out of the RFP
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Jul 12, 2024
1 parent 8655ee3 commit a20f246
Show file tree
Hide file tree
Showing 108 changed files with 0 additions and 7,321 deletions.
4 changes: 0 additions & 4 deletions Modules/LlmDriver/app/Functions/ReportingTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,10 @@ public function handle(
foreach ($pagesChunk as $index => $page) {
$pageContent = collect($page)->pluck('content')->toArray();
$pageContent = implode("\n", $pageContent);
put_fixture('solutions_prompts_'.$pageIndex.'.txt', $pageContent, false);
$prompt = ReportBuildingFindRequirementsPrompt::prompt(
$pageContent, $message->getContent(), $message->getChatable()->description
);
$prompts[] = $prompt;
put_fixture('solutions_prompts_'.$index.'.txt', $prompts, false);
}
$this->poolPrompt($prompts, $report, $document);
}
Expand Down Expand Up @@ -148,7 +146,6 @@ protected function poolPrompt(array $prompts, Report $report, Document $document
foreach ($results as $resultIndex => $result) {
//make the sections per the results coming back.
$content = $result->content;
put_fixture('solutions_content_'.$resultIndex.'.txt', $content, false);
$this->makeSectionFromContent($content, $document, $report);
}
}
Expand Down Expand Up @@ -194,7 +191,6 @@ protected function makeSectionFromContent(
]);
}
} catch (\Exception $e) {
put_fixture('solutions_content_error.txt', $content, false);
Log::error('Error parsing JSON', [
'error' => $e->getMessage(),
'content' => $content,
Expand Down
10 changes: 0 additions & 10 deletions tests/fixtures/solutions_content_0.txt

This file was deleted.

10 changes: 0 additions & 10 deletions tests/fixtures/solutions_content_1.txt

This file was deleted.

10 changes: 0 additions & 10 deletions tests/fixtures/solutions_content_2.txt

This file was deleted.

Loading

0 comments on commit a20f246

Please sign in to comment.