ragnotify

package
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 5 Imported by: 0

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

func ParseHits(raw string) ([]agent.DocHit, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL