This commit is contained in:
31
e2e/php/tests/EmbedExtraTest.php
generated
Normal file
31
e2e/php/tests/EmbedExtraTest.php
generated
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
// This file is auto-generated by alef — DO NOT EDIT.
|
||||
// alef:hash:4e15143f4af1ae8bafbdb1506ef057da924484c66a19483966333558ad437e75
|
||||
// To regenerate: alef generate
|
||||
// To verify freshness: alef verify --exit-code
|
||||
// Issues & docs: https://github.com/kreuzberg-dev/alef
|
||||
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Kreuzberg\E2e;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Kreuzberg\Kreuzberg;
|
||||
use Kreuzberg\EmbeddingConfig;
|
||||
|
||||
/** E2e tests for category: embed_extra. */
|
||||
final class EmbedExtraTest extends TestCase
|
||||
{
|
||||
|
||||
/** Batch embed texts */
|
||||
public function test_embed_texts_batch(): void
|
||||
{
|
||||
$config = \Kreuzberg\EmbeddingConfig::from_json(json_encode(["model" => ["name" => "balanced", "type" => "preset"]]));
|
||||
$this->expectNotToPerformAssertions();
|
||||
$result = Kreuzberg::embedTexts(["Hello", "World"], $config);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user