Skip to content

Commit

Permalink
docs: default recommended is HERMES2THETA_LLAMA3_8B
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienbrault committed May 31, 2024
1 parent f2d8c62 commit 502ad53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ use AdrienBrault\Instructrice\LLM\Provider\OpenAi;
use AdrienBrault\Instructrice\LLM\Provider\Anthropic;

$instructrice = InstructriceFactory::create(
defaultLlm: Ollama::HERMES2PRO_MISTRAL_7B,
defaultLlm: Ollama::HERMES2THETA_LLAMA3_8B,
apiKeys: [ // Unless you inject keys here, api keys will be fetched from environment variables
OpenAi::class => $openAiApiKey,
Anthropic::class => $anthropicApiKey,
Expand Down
8 changes: 6 additions & 2 deletions examples/list-models.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ class Model
public ?string $extractionStrategy = null;
}


$demo = require __DIR__ . '/bootstrap.php';
$demo(function (Instructrice $instructrice, ?string $context, ConsoleOutputInterface $output) {
if ($context === null) {
$context = file_get_contents(__DIR__ . '/../README.md');
assert($context !== false);
}

$instructrice->list(
Model::class,
$context ?? file_get_contents(__DIR__ . '/../README.md'),
$context,
'Extract language models supported by instructrice.',
[
'truncate_automatically' => true,
Expand Down

0 comments on commit 502ad53

Please sign in to comment.