Skip to content

Commit e36474f

Browse files
committed
feat: Adds hybrid search options contract for multisearch
1 parent 0d3be0e commit e36474f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Contracts/HybridSearchOptions.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
class HybridSearchOptions
88
{
99
private ?float $semanticRatio = null;
10+
11+
/**
12+
* @var non-empty-string|null
13+
*/
1014
private ?string $embedder = null;
1115

1216
public function setSemanticRatio(float $ratio): HybridSearchOptions
@@ -26,6 +30,12 @@ public function setEmbedder(string $embedder): HybridSearchOptions
2630
return $this;
2731
}
2832

33+
/**
34+
* @return array{
35+
* semanticRatio?: float,
36+
* embedder?: non-empty-string
37+
* }
38+
*/
2939
public function toArray(): array
3040
{
3141
return array_filter([

0 commit comments

Comments
 (0)