|
19 | 19 | */
|
20 | 20 | class Voyage extends Model
|
21 | 21 | {
|
| 22 | + /** Supported dimensions: 2048, 1024, 512, or 256 */ |
| 23 | + public const V3_5 = 'voyage-3.5'; |
| 24 | + /** Supported dimensions: 2048, 1024, 512, or 256 */ |
| 25 | + public const V3_5_LITE = 'voyage-3.5-lite'; |
| 26 | + /** Fixed 1024 dimensions */ |
22 | 27 | public const V3 = 'voyage-3';
|
| 28 | + /** Fixed 512 dimensions */ |
23 | 29 | public const V3_LITE = 'voyage-3-lite';
|
| 30 | + /** Supported dimensions: 2048, 1024, 512, or 256 */ |
| 31 | + public const V3_LARGE = 'voyage-3-large'; |
| 32 | + /** Fixed 1024 dimensions */ |
24 | 33 | public const FINANCE_2 = 'voyage-finance-2';
|
| 34 | + /** Fixed 1024 dimensions */ |
25 | 35 | public const MULTILINGUAL_2 = 'voyage-multilingual-2';
|
| 36 | + /** Fixed 1024 dimensions */ |
26 | 37 | public const LAW_2 = 'voyage-law-2';
|
| 38 | + /** Supported dimensions: 2048, 1024, 512, or 256 */ |
| 39 | + public const CODE_3 = 'voyage-code-3'; |
| 40 | + /** Fixed 1536 dimensions */ |
27 | 41 | public const CODE_2 = 'voyage-code-2';
|
28 | 42 |
|
| 43 | + public const INPUT_TYPE_DOCUMENT = 'document'; |
| 44 | + public const INPUT_TYPE_QUERY = 'query'; |
| 45 | + |
29 | 46 | /**
|
30 |
| - * @param array<string, mixed> $options |
| 47 | + * @param array{dimensions?: int, input_type?: self::INPUT_TYPE_*, truncation?: bool} $options |
31 | 48 | */
|
32 |
| - public function __construct(string $name = self::V3, array $options = []) |
| 49 | + public function __construct(string $name = self::V3_5_LITE, array $options = []) |
33 | 50 | {
|
34 | 51 | parent::__construct($name, [Capability::INPUT_MULTIPLE], $options);
|
35 | 52 | }
|
|
0 commit comments