-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
066a205
commit bed43c8
Showing
24 changed files
with
458 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace Cognesy\Instructor\Extras\Evals\Contracts; | ||
|
||
use Cognesy\Instructor\Extras\Evals\Data\Experiment; | ||
|
||
interface CanEvaluateExperiment | ||
{ | ||
public function evaluate(Experiment $experiment) : Metric; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
<?php | ||
namespace Cognesy\Instructor\Extras\Evals\Contracts; | ||
|
||
use Cognesy\Instructor\Extras\Evals\Data\EvalInput; | ||
use Cognesy\Instructor\Extras\Evals\Data\Experiment; | ||
use Cognesy\Instructor\Features\LLM\Data\LLMResponse; | ||
|
||
interface CanExecuteExperiment | ||
{ | ||
public function withEvalInput(EvalInput $input): self; | ||
public function execute(): void; | ||
public function execute(Experiment $experiment): void; | ||
public function getLLMResponse(): LLMResponse; | ||
public function getAnswer(): mixed; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.