Web Search Tool
Deterministically ranks a provided corpus or fetched page set for a query. For production, plug in your search adapter.
Run tool
Form input
Direct JSON or Markdown
Submit JSON directly or Markdown that can be converted into JSON.
Work steps
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
query | text | Yes | Query |
documents | array | Yes | Documents |
Outputs
| Name | Type | Description |
|---|---|---|
results | array | Results |
work | array | Work |
Sample request
{
"query": "acme revenue",
"documents": [
{
"id": "1",
"title": "Acme Q1",
"text": "Revenue rose to 42"
}
]
}