Commit
·
ac28a84
1
Parent(s):
3454905
Update tool description
Browse filesSigned-off-by: Aivin V. Solatorio <[email protected]>
- wdi_mcp_gradio.py +2 -2
wdi_mcp_gradio.py
CHANGED
|
@@ -7,12 +7,12 @@ import services
|
|
| 7 |
def search_relevant_indicators(query: str, top_k: int):
|
| 8 |
"""Search for a shortlist of relevant indicators from the World Development Indicators (WDI) Data360 API given the query.
|
| 9 |
|
| 10 |
-
This tool is optimized for English language queries, so try to use English for your query. If the user's query is not in English, you may need to translate it to English first. This tool is used to find indicators and does not
|
| 11 |
|
| 12 |
The search ranking may not be optimal, so the LLM may use this as shortlist and pick the most relevant from the list (if any). You, as an LLM, must always get at least `top_k=20` for better recall.
|
| 13 |
|
| 14 |
Args:
|
| 15 |
-
query: The search query by the user or one formulated by an LLM based on the user's prompt.
|
| 16 |
top_k: The number of shortlisted indicators that will be returned that are semantically related to the query. IMPORTANT: You, as an LLM, must ALWAYS set this argument to at least 20.
|
| 17 |
|
| 18 |
Returns:
|
|
|
|
| 7 |
def search_relevant_indicators(query: str, top_k: int):
|
| 8 |
"""Search for a shortlist of relevant indicators from the World Development Indicators (WDI) Data360 API given the query.
|
| 9 |
|
| 10 |
+
This tool is optimized for English language queries, so try to use English for your query. If the user's query is not in English, you may need to translate it to English first. This tool is used to find indicators and does not consider any geography or time period, so you should not include any in your query.
|
| 11 |
|
| 12 |
The search ranking may not be optimal, so the LLM may use this as shortlist and pick the most relevant from the list (if any). You, as an LLM, must always get at least `top_k=20` for better recall.
|
| 13 |
|
| 14 |
Args:
|
| 15 |
+
query: The search query by the user or one formulated by an LLM based on the user's prompt. This query should be in English. If the user's query is not in English, you may need to translate it to English first. This tool is used to find indicators and does not consider any geography or time period, so you should not include any in your query.
|
| 16 |
top_k: The number of shortlisted indicators that will be returned that are semantically related to the query. IMPORTANT: You, as an LLM, must ALWAYS set this argument to at least 20.
|
| 17 |
|
| 18 |
Returns:
|