Wiki RAG: the lab's know-how on call

The lab's 1,027-page process wiki answering in its AI chatbot, with the right page in the top 10 for 99 of 100 test questions and the data kept on university infrastructure.

My role
Initiator and builder
Period
2026 to present
Status
In production for the lab
1,027
wiki pages synced
0.99
page Recall@10
0.74
passage Recall@1

The problem

A research group's working knowledge, which tool to use, which recipe works, how to fix a failed process step, sits in an internal SharePoint wiki of more than a thousand pages that few people search well. A generic AI chatbot cannot see it and would invent the answer. The lab needed answers drawn from its own pages, citing them, without the data leaving the university.

Why it matters

The group's own know-how is one of three kinds of context the lab gives its AI agents, next to the published literature and the live state of its instruments through I2AS.

What came of it

  • In production for the lab as a tool of its AI chatbot over MCP: answers cite the wiki pages they used, and the data stays on university infrastructure.
  • The right page in the top 10 for 99 of 100 test questions, and the exact passage first for 74 of them.
  • Hybrid search beats either half alone: passage Recall@1 of 0.74, against 0.67 for semantic and 0.61 for keyword search.
  • Synced from SharePoint through the Microsoft Graph API, using an Azure AD app registration set up with university IT; pages covered by the CV privacy policy, a denylist or an author's opt-out are left out.
Schematic of the wiki RAG pipeline. Top row, left to right: SharePoint wiki, 1,027 pages; Microsoft Graph API with an Azure AD app registration, highlighted; a privacy filter that leaves restricted pages out; an OpenSearch index of 2,135 passages from 715 pages. An arrow runs down from the index to the bottom row, which reads right to left: hybrid search, semantic plus keyword fused by RRF; the MCP tool search_group_wiki; the lab AI chatbot on university-hosted models; and the researcher who asked, who receives an answer citing the wiki pages. A dashed outline marks the filter, index, tool and search as hosted at the university.Schematic of the wiki RAG pipeline. Top row, left to right: SharePoint wiki, 1,027 pages; Microsoft Graph API with an Azure AD app registration, highlighted; a privacy filter that leaves restricted pages out; an OpenSearch index of 2,135 passages from 715 pages. An arrow runs down from the index to the bottom row, which reads right to left: hybrid search, semantic plus keyword fused by RRF; the MCP tool search_group_wiki; the lab AI chatbot on university-hosted models; and the researcher who asked, who receives an answer citing the wiki pages. A dashed outline marks the filter, index, tool and search as hosted at the university.
The wiki reaches the index through the Microsoft Graph API; questions reach it through the chatbot's MCP tool, and nothing leaves the university.

What I did

  • Syncs the wiki through the Microsoft Graph API with an Azure AD application registration, the access route agreed with university IT; 1,027 pages crawled, privacy-restricted pages excluded.
  • Indexes 2,135 passages in OpenSearch and searches them two ways at once, semantic (kNN) and keyword (BM25), merged by Reciprocal Rank Fusion.
  • Served to the lab chatbot as an MCP tool on university-hosted models, so answers cite their pages and nothing leaves the university.
  • Measured, not assumed: 100 test questions written by an LLM from randomly sampled wiki passages, verbatim copies rejected, scored at passage and page level for each search mode.

Part of the lab's AI work alongside the agentic literature RAG, which the same chatbot uses for published papers.

Stack

  • Python
  • Microsoft Graph API
  • Azure AD app registration
  • SharePoint
  • OpenSearch
  • Hybrid search
  • BM25
  • Reciprocal Rank Fusion
  • MCP
  • LLM evaluation

I am looking for a role in AI for materials and processes. Write to me atcontact@aditya-kumar.de.

All projects