Spaces:
Runtime error
Runtime error
Commit
·
b24a29b
1
Parent(s):
7e49bc5
Clarify semantic search capabilities in docstrings
Browse files- Update search_datasets and search_models docstrings to explicitly mention semantic/similarity search
- Clarify that it uses AI-powered semantic search, not keyword matching
- Improve query parameter descriptions to emphasize natural language support
app.py
CHANGED
@@ -22,10 +22,13 @@ def search_datasets(
|
|
22 |
min_downloads: int = 0
|
23 |
) -> str:
|
24 |
"""
|
25 |
-
Search for datasets based on a text query.
|
|
|
|
|
|
|
26 |
|
27 |
Args:
|
28 |
-
query: Search query text
|
29 |
k: Number of results to return (1-100)
|
30 |
sort_by: Sort method for results (similarity, likes, downloads, trending)
|
31 |
min_likes: Minimum likes filter
|
@@ -118,10 +121,13 @@ def search_models(
|
|
118 |
max_param_count: Optional[int] = None
|
119 |
) -> str:
|
120 |
"""
|
121 |
-
Search for models based on a text query with optional parameter count filtering.
|
|
|
|
|
|
|
122 |
|
123 |
Args:
|
124 |
-
query: Search query text
|
125 |
k: Number of results to return (1-100)
|
126 |
sort_by: Sort method for results (similarity, likes, downloads, trending)
|
127 |
min_likes: Minimum likes filter
|
|
|
22 |
min_downloads: int = 0
|
23 |
) -> str:
|
24 |
"""
|
25 |
+
Search for datasets using semantic/similarity search based on a text query.
|
26 |
+
|
27 |
+
This uses AI-powered semantic search to find datasets whose descriptions
|
28 |
+
are semantically similar to your query, not just keyword matching.
|
29 |
|
30 |
Args:
|
31 |
+
query: Search query text (natural language description of what you're looking for)
|
32 |
k: Number of results to return (1-100)
|
33 |
sort_by: Sort method for results (similarity, likes, downloads, trending)
|
34 |
min_likes: Minimum likes filter
|
|
|
121 |
max_param_count: Optional[int] = None
|
122 |
) -> str:
|
123 |
"""
|
124 |
+
Search for models using semantic/similarity search based on a text query with optional parameter count filtering.
|
125 |
+
|
126 |
+
This uses AI-powered semantic search to find models whose descriptions
|
127 |
+
are semantically similar to your query, not just keyword matching.
|
128 |
|
129 |
Args:
|
130 |
+
query: Search query text (natural language description of what you're looking for)
|
131 |
k: Number of results to return (1-100)
|
132 |
sort_by: Sort method for results (similarity, likes, downloads, trending)
|
133 |
min_likes: Minimum likes filter
|