Skip to content

Commit 247f12e

Browse files
fix: remove auto search type
1 parent 0caff95 commit 247f12e

5 files changed

Lines changed: 8 additions & 9 deletions

File tree

packages/uipath-platform/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-platform"
3-
version = "0.1.16"
3+
version = "0.1.17"
44
description = "HTTP client library for programmatic access to UiPath Platform"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

packages/uipath-platform/src/uipath/platform/context_grounding/_context_grounding_service.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ def unified_search(
14561456
self,
14571457
name: str,
14581458
query: str,
1459-
search_mode: SearchMode = SearchMode.AUTO,
1459+
search_mode: SearchMode = SearchMode.SEMANTIC,
14601460
number_of_results: int = 10,
14611461
threshold: float = 0.0,
14621462
scope: Optional[UnifiedSearchScope] = None,
@@ -1471,7 +1471,7 @@ def unified_search(
14711471
Args:
14721472
name (str): The name of the context index to search in.
14731473
query (str): The search query in natural language.
1474-
search_mode (SearchMode): The search mode to use. Defaults to AUTO.
1474+
search_mode (SearchMode): The search mode to use. Defaults to SEMANTIC.
14751475
number_of_results (int): Maximum number of results to return. Defaults to 10.
14761476
threshold (float): Minimum similarity threshold. Defaults to 0.0.
14771477
scope (Optional[UnifiedSearchScope]): Optional search scope (folder, extension).
@@ -1511,7 +1511,7 @@ async def unified_search_async(
15111511
self,
15121512
name: str,
15131513
query: str,
1514-
search_mode: SearchMode = SearchMode.AUTO,
1514+
search_mode: SearchMode = SearchMode.SEMANTIC,
15151515
number_of_results: int = 10,
15161516
threshold: float = 0.0,
15171517
scope: Optional[UnifiedSearchScope] = None,
@@ -1526,7 +1526,7 @@ async def unified_search_async(
15261526
Args:
15271527
name (str): The name of the context index to search in.
15281528
query (str): The search query in natural language.
1529-
search_mode (SearchMode): The search mode to use. Defaults to AUTO.
1529+
search_mode (SearchMode): The search mode to use. Defaults to SEMANTIC.
15301530
number_of_results (int): Maximum number of results to return. Defaults to 10.
15311531
threshold (float): Minimum similarity threshold. Defaults to 0.0.
15321532
scope (Optional[UnifiedSearchScope]): Optional search scope (folder, extension).
@@ -2162,7 +2162,7 @@ def _unified_search_spec(
21622162
self,
21632163
index_id: str,
21642164
query: str,
2165-
search_mode: SearchMode = SearchMode.AUTO,
2165+
search_mode: SearchMode = SearchMode.SEMANTIC,
21662166
number_of_results: int = 10,
21672167
threshold: float = 0.0,
21682168
scope: Optional[UnifiedSearchScope] = None,

packages/uipath-platform/src/uipath/platform/context_grounding/context_grounding.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ class ContextGroundingSearchResultItem(BaseModel):
239239
class SearchMode(str, Enum):
240240
"""Enum representing possible unified search modes."""
241241

242-
AUTO = "Auto"
243242
SEMANTIC = "Semantic"
244243

245244

packages/uipath-platform/tests/services/test_context_grounding_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3111,7 +3111,7 @@ async def test_unified_search_async(
31113111
response = await service.unified_search_async(
31123112
name="test-index",
31133113
query="test query",
3114-
search_mode=SearchMode.AUTO,
3114+
search_mode=SearchMode.SEMANTIC,
31153115
)
31163116

31173117
assert isinstance(response, UnifiedQueryResult)

packages/uipath-platform/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)