Perform a search on a query string and return results with score.
For more information about the search parameters, take a look at the pymilvus documentation found here: https://milvus.io/api-reference/pymilvus/v2.2.6/Collection/search().md
similarity_search_with_score(
self,
query: str,
k: int = 4,
param: Optional[dict] = None,
expr: Optional[str] = None,
timeout: Optional[float] = None,
**kwargs: Any = {}
) -> List[Tuple[Document, float]]| Name | Type | Description |
|---|---|---|
query* | str | The text being searched. |
k | int | Default: 4The amount of results to return. Defaults to 4. |
param | dict | Default: NoneThe search params for the specified index. Defaults to None. |
expr | str | Default: NoneFiltering expression. Defaults to None. |
timeout | float | Default: NoneHow long to wait before timeout error. Defaults to None. |
kwargs | Any | Default: {}Collection.search() keyword arguments. |