-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Adds hybrid search options contract for multisearch #670
Conversation
Co-authored-by: Tomas Norkūnas <[email protected]>
Co-authored-by: Tomas Norkūnas <[email protected]>
|
||
declare(strict_types=1); | ||
|
||
namespace MeiliSearch\Contracts; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
namespace MeiliSearch\Contracts; | |
namespace Meilisearch\Contracts; |
class HybridSearchOptions | ||
{ | ||
private ?float $semanticRatio = null; | ||
private ?string $embedder = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private ?string $embedder = null; | |
/** | |
* @var non-empty-string|null | |
*/ | |
private ?string $embedder = null; |
|
||
return $this; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** | |
* @return array{ | |
* semanticRatio?: float, | |
* embedder?: non-empty-string | |
* } | |
*/ |
@@ -27,6 +27,7 @@ class SearchQuery | |||
private ?int $hitsPerPage; | |||
private ?int $page; | |||
private ?array $vector; | |||
private ?HybridSearchOptions $hybrid; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private ?HybridSearchOptions $hybrid; | |
private ?HybridSearchOptions $hybrid = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was testing it now too. and have made a similar commit. please check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've commited it to another PR. so please choose one and close another one.
Pull Request
Related issue
Adds hybrid search options contract for multisearch
What does this PR do?
PR checklist
Please check if your PR fulfills the following requirements:
Thank you so much for contributing to Meilisearch!