Kurai
From fragmented search results to useful knowledge.
Self-hosted web search for people and AI agents that queries a private SearXNG instance, fuses results with Reciprocal Rank Fusion and multi-signal relevance scoring, strips ads and trackers, and outputs clean Markdown.
The problem
Individual search engines disagree on ranking, wrap content in trackers and boilerplate navigation, and return noisy HTML that degrades both human reading and LLM context windows.
Approach
Kurai queries a private SearXNG instance, combines rankings via Reciprocal Rank Fusion alongside BM25, engine position, domain authority, and freshness signals, removes ads, trackers, and dead links, and converts pages into clean Markdown across a web UI, HTTP API, and MCP server.
Engineers, researchers, and AI agents needing private, self-hosted, clean-text web retrieval without third-party search API lock-in.
Search Relevance Lab
How does Reciprocal Rank Fusion combine three disagreeing search engines without arbitrary score normalization?
- #1Top 10 AI Frameworks You Must Try Right Now (Sponsored)
- #2Reciprocal Rank Fusion Outperforms Condorcet and Individual Rank Systems
- #3Queue Theory & Backpressure in Event-Driven Pipelines
- #4In Search of an Understandable Consensus Algorithm
- #1In Search of an Understandable Consensus Algorithm
- #2Reciprocal Rank Fusion Outperforms Condorcet and Individual Rank Systems
- #3JSON-RPC Transport Design for Model Context Protocol Servers
- #4Queue Theory & Backpressure in Event-Driven Pipelines
- #1JSON-RPC Transport Design for Model Context Protocol Servers
- #2Queue Theory & Backpressure in Event-Driven Pipelines
- #3Reciprocal Rank Fusion Outperforms Condorcet and Individual Rank Systems
Architecture & notes
Claims are labeled by evidence type. Details requiring direct source inspection are kept explicit.
Capabilities4
- — Queries a private SearXNG instance for self-hosted retrieval.
- — Fuses results using Reciprocal Rank Fusion and relevance signals including BM25, engine position, domain authority, and freshness.
- — Removes advertisements, trackers, and dead links, converting web pages into clean Markdown.
- — Accessible via web UI, HTTP API, and MCP server.
Design & implementation evidence4
Standard RRF aggregates reciprocal ranks across independent result lists so consensus documents surface above single-engine outliers.
Strips navigation chrome, ad containers, and tracking scripts before emitting structured Markdown suitable for LLM consumption.
Built in Go, integrating with SearXNG and exposing an MCP interface.
The Search Relevance Lab demonstrates standard RRF = sum(1 / (k + rank)) on synthetic datasets; it does not fabricate Kurai internal BM25 or freshness weights.
Scope & limitations2
- — The embedded lab uses predefined synthetic rankings and HTML fixtures rather than executing live web searches.
- — Standard RRF alone does not represent Kurai full multi-signal scoring pipeline.
Related work
Shared concerns: making ai agents reliable