-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
24 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from typing import Dict, List, Union, Optional | ||
|
||
from marqo.core.models.interpolation_method import InterpolationMethod | ||
from marqo.tensor_search.models.api_models import BaseMarqoModel | ||
from marqo.tensor_search.models.score_modifiers_object import ScoreModifier | ||
|
||
|
||
class RecommendQuery(BaseMarqoModel): | ||
documents: Union[List[str], Dict[str, float]] | ||
tensorFields: Optional[List[str]] = None | ||
interpolationMethod: Optional[InterpolationMethod] = None | ||
excludeInputDocuments: bool = True | ||
limit: int = 10 | ||
offset: int = 0 | ||
efSearch: Optional[int] = None | ||
approximate: Optional[bool] = None | ||
searchableAttributes: Optional[List[str]] = None | ||
showHighlights: bool = True | ||
reRanker: str = None | ||
filter: str = None | ||
attributesToRetrieve: Union[None, List[str]] = None | ||
scoreModifiers: Optional[ScoreModifier] = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters