You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the recent surge of Deep Research, there's an increasing demand for AI systems to able to access to public web data to provide agent framework the capability to plan the task and steps.
A WebSearchTool should address this requirement and this tool should be generic enough so that can address different use cases for different users, so the tool should have below capabilities:
The tool should able to support different search engine by default and in runtime.
The tool should able to support different endpoint to perform the search against by default and in runtime.
The tool's input should support various request body by default and in runtime.
The tool's output should be structured to ensure it can encapsulate different responses of different endpoints.
Proposal
Create an agent like below:
POST /_plugins/_ml/agents/_register
{
"name": "deep research agent",
"type": "plan",
"description": "this is a simple deep research agent",
"llm": {
"model_id": "LWoR8YwBW2B7Mkxs2gVc",
"parameters": {
"max_iteration": 5,
"stop_when_no_tool_found": true,
"response_filter": "$.completion"
}
},
"tools": [
{
"type": "WebSearchTool",
"name": "WebSearchTool",
"parameters": {
"search_engine": "google",
"endpoint": "https://www.google.com"
}
}
],
"app_type": "my_app"
}
Execute the agent to solve a complex task:
POST /_plugins/_ml/agents/{agent_id}
{
"parameters": {
"question": "I have an index my-index in my cluster and I want to change the index's one field `description` type from text to embedding type, how?"
}
}
During the agent runs, the agent might break the task into several steps, e.g.:
step1: Use WebSearchTool to search embedding type in OpenSearch with search content embedding type in OpenSearch
step2: Use WebSearchTool to search change index type in OpenSearch with search content change index type in OpenSearch.
step3: Combine step1 and step2's result to figure out final solution to complete the task.
Then WebSearchTool will be leveraged to perform search task for step1 and step2 with different search content, and then in step3 the LLM can combine the results to generate a final solution.
The text was updated successfully, but these errors were encountered:
Background
With the recent surge of Deep Research, there's an increasing demand for AI systems to able to access to public web data to provide agent framework the capability to plan the task and steps.
A WebSearchTool should address this requirement and this tool should be generic enough so that can address different use cases for different users, so the tool should have below capabilities:
Proposal
POST /_plugins/_ml/agents/_register
POST /_plugins/_ml/agents/{agent_id}
step1: Use WebSearchTool to search embedding type in OpenSearch with search content
embedding type in OpenSearch
step2: Use WebSearchTool to search change index type in OpenSearch with search content
change index type in OpenSearch
.step3: Combine step1 and step2's result to figure out final solution to complete the task.
Then WebSearchTool will be leveraged to perform search task for step1 and step2 with different search content, and then in step3 the LLM can combine the results to generate a final solution.
The text was updated successfully, but these errors were encountered: