Documentation
¶
Overview ¶
Package ragnotify parses an MCP retrieval server's search result (e.g. ragtag, raglit) into []agent.DocHit, for a host's agent.DocFinder.
Reranking is the server's job: ParseHits trusts the ordering and scores it returns, and agent's MinScore/MaxHits only trims a pre-ranked list. If the server returns raw vector top-k without a reranker, expect noise regardless of MinScore.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseHits ¶
ParseHits maps a ragtag search result string onto []agent.DocHit. It accepts either a bare JSON array of hits or an object wrapping them under "hits" / "results" / "documents" — the shapes retrieval servers commonly return. A hit missing an id is dropped (the id is the dedup + fetch key). Exported so a host with a different wire shape can test its own adapter against this one.
Types ¶
This section is empty.