Manuscript Offprint

arXiv:2610.23480

MuninAI: A Self-Hosted Agentic Framework for Independent Research Groups

Markus Fischer, Jens Meiler, Matthias Elgeti

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Research groups that want a language model grounded in their own literature face a choice between hosted services that receive their unpublished work and self-hosted deployments that keep the data local but give the model no access to the corpus. Munin is an open-source framework for a self-hosted scientific assistant that indexes a group's corpus and its citation graph, and wraps whichever open-weight model the group can serve in an agent harness with specialised reading, search, and computation tools. We claim that the harness, rather than the specific model, is what makes the system useful on domain literature, and we ship the evaluation suite that tests this claim with the software.

On 199 paired literature questions, the harness more than doubles the accuracy of the base model, from 0.387 to 0.874 (+0.487, 95% CI [0.407, 0.568]), while naive retrieve-then-answer scores below the unaided model on every backbone tested. Under the harness, roughly twice as many answer claims trace to a passage the model read itself as with fixed top-5 retrieval. When the source paper for a question is removed from the corpus, the system abstains on about nine in ten of the questions it had answered correctly on the Qwen backbones and eight in ten on gpt-oss-20b, and it produces no fabricated local citation across 300 fabricated references.

The pattern holds on three backbones from two developers, including a 20-billion-parameter model that runs on a single consumer-grade GPU. With all outbound network access disabled, both Qwen backbones still exceed the published PaperQA2 accuracy. The evaluation suite runs as a single command, so an adopting group can re-run it on its own corpus and model.

1 Introduction

Every research group accumulates a body of literature over years: papers they cite repeatedly, foundational references, preprints shared by collaborators, and results that have not yet been published. Locating a specific value, figure, or methodological detail within that collection typically depends on individual scientists remembering which document contains it. Citation managers organise bibliographies during the writing process, but extracting quantitative data from figures and tables remains a manual task.

Commercial language-model services and agentic search tools have made it straightforward to query the open web, however a group's internal corpus sits outside that reach: it includes licensed articles whose redistribution is restricted, unpublished manuscript drafts, instrument-specific datasets, and internal reports that no public index covers. What a public model can answer from the open literature and what the group actually needs to retrieve from its own files are therefore different questions, and the gap between them widens as the corpus grows.

We present Munin, a framework for running an agentic research assistant on a group's own hardware. A group ingests its own papers and obtains an assistant that answers from that private collection. The framework is model-agnostic. Any serving stack that exposes an OpenAI-compatible API is a valid inference target, and the system scales down to a single GPU. Beyond the assistant itself, Munin ships a frozen evaluation suite so that an adopting group can verify the performance claims on its own corpus rather than relying on our reported numbers.

The system has two halves, deliberately decoupled so that a group may deploy either independently. The backend holds the agent loop, a knowledge base (vector index, citation graph, PDF parser, ingestion pipeline), and a client for the inference endpoint. It runs entirely on the institution's infrastructure. The frontend handles authentication, file upload, and the chat interface. As an added security layer, the frontend reaches the backend through an outbound tunnel so that the machine storing the corpus accepts no inbound connection. A group that already runs its own interface can call the backend API directly and deploy only that half. The language model itself is a configuration parameter and not a hard dependency.

The corpus is whatever the group uploads. On ingestion, documents are labelled by contributing group into sub-corpora, and clustered into topics, so that users can scope queries to a relevant subset. Because the correctness of the agent loop depends jointly on the corpus content, the chosen model, and the domain of the questions, we ship the benchmarking suite alongside the framework. An adopting group can re-run the full evaluation after any change to model, encoder, corpus, or harness, and compare against the reference numbers we report for three model configurations (gpt-oss-20b, Qwen3.6, Qwen3.8). We also include ablation baselines: the same questions answered by the bare model with no retrieval, and by naive top-k retrieval with no agentic loop. The difference between those baselines and the full system isolates the contribution of the iterative tool-use loop.

Our contributions are: (1) Munin, a self-hosted agentic framework consisting of a multi-step tool-use loop over 45 tools, an ingestion and corpus-quality pipeline, a vector-and-graph knowledge base, and a deployment topology in which the corpus host accepts no inbound traffic; (2) a frozen evaluation suite that an adopting group runs to establish its own baselines and to re-measure after any component change; (3) harness-value measurements across three model configurations, with per-question results released for inspection; (4) a corpus-grounding test that yields DOI-level ground truth by construction, requiring no human annotation and (5) egress level treated as a first-class experimental variable. We also documented our development record in the Appendix for other developers to use.

References (39)