---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/tools/web_retrieval/functions/searxngResultsToRetrievables.md
---

# Function: searxngResultsToRetrievables()

```ts
function searxngResultsToRetrievables(
  payload: SearxngPayloadLike,
  opts?: ToRetrievableOptions,
  recommend?: ArtifactRecommendations,
): RawRetrievable[];
```

Defined in: [batteries/tools/web\_retrieval/index.ts:145](https://github.com/NHTIO/ADK/blob/v1.20260609.1/src/batteries/tools/web_retrieval/index.ts#L145)

Convert a SearXNG normalised payload into one @nhtio/adk!RawRetrievable per result.

## Parameters

| Parameter   | Type                                                                  | Description                                                                       |
| ----------- | --------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| `payload`   | [`SearxngPayloadLike`](../interfaces/SearxngPayloadLike.md)           | The SearXNG normalised payload (`{ results: [{ url, title, content, score }] }`). |
| `opts`      | [`ToRetrievableOptions`](../interfaces/ToRetrievableOptions.md)       | Trust tier, kind, id prefix, optional spool hook.                                 |
| `recommend` | [`ArtifactRecommendations`](../interfaces/ArtifactRecommendations.md) | Optional artifact-resolver recommendations (the glue names no class itself).      |

## Returns

[`RawRetrievable`](../../../../common/interfaces/RawRetrievable.md)\[]

One `RawRetrievable` per result.

## Remarks

Snippets are short, so `content` stays an inline string (the `spool` hook, if any, is still
offered the `text` recommendation). `source` is the result URL; `score` is clamped to `[0,1]`.
